Overview
| Artifact ID: | dd03d84014fc21883b009cb40e6102efe86447cc |
|---|---|
| Ticket: | 453709ffffffffffffffffffffffffffffffffff
optimize ExceptionRange lookups |
| User & Date: | msofer on 2002-03-07 19:46:31 |
Changes
- icomment:
Logged In: YES user_id=148712 I keep packing stuff in this patch ... The new newRangeNPeep.patch adds - peep-hole optimisation in INST_FOREACH4: avoids (creating, pushing, popping, testing, destroying) an object and saves executing an INST_JUMP_FALSE. - peep-hole optimisation in several instructions: avoids pushing an object that will be popped right away and saves executing an INST_POP. The first column is the patched version: 000 VERSIONS: 1:8.4a5 2:8.4a5 001 LOOP for (to 1000) 1328 1433 002 LOOP for, iterate list 1977 1993 003 LOOP for, iterate string 2631 2618 004 LOOP foreach, iterate list 872 1149 005 LOOP foreach, iterate string 1104 1385 006 LOOP while (to 1000) 1294 1427 007 LOOP while 1 (to 1000) 1005 1088 007 BENCHMARKS 1:8.4a5 2:8.4a5 Remark that this (and many other optimisations) would be simpler and more efficient if we settled on not being able to run older style bytecode, and providing a "translator" in tbcload. BTW, are the .tbc files versioned, or does proComp only use the 8.0 compiler avoiding the newer instructions?
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"