[nem-en] Location without bit-hanting :)
vc
vc at rsdn.ru
Sun Sep 10 04:59:15 CEST 2006
Hi, all
The location bit hack (col, line, ... represented as a single field)
makes a lot of problems. For example, it does not support negative values
needed for relocation algorithm used to compensate editing changes (in VS
2005 and other IDE).
I made some changes (see a patch file in the attachment) and replaced
the single field with normal fields.
This solution solves the following problems.
1. It eliminates restrictions on file count and location line and col
values.
2. Removes Location dependence on ManagerClass. In this case file
index is globally unique, so is thread safer.
3. Simplifies the source code.
This solution does not affect the compiler performance at all.
Pentium M 1.7 1 Gb RAM (notebook)
Current boot binaries took:
56 sec. and 150 Mb peak of memory size.
In Debug mode it took:
55 sec. and 171 Mb peak of memory size.
In Release mode it took:
54 sec. and 150 Mb peak of memory size.
Dual Core Genuine 2GHz 2 GB RAM (notebook)
Current boot binaries took:
44 sec. and 154 Mb peak of memory size.
In Release mode it took:
44 sec. and 133 Mb peak of memory size.
Really, this solution apparently does not affect the performance and
solves many problems.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.zip
Type: application/x-zip-compressed
Size: 4163 bytes
Desc: not available
Url : /mailman/pipermail/devel-en/attachments/20060910/4e76a053/patch.bin
More information about the devel-en
mailing list