qt6-bb10/src/tools
Jędrzej Nowacki 053e8c41d7 Use file mapping in moc.
The change reduces heap allocations by using file mapping instead of
reading a whole file into memory just to create a slightly modified
copy of it.

For this small test case:

 moc <<EOF
  class X : public QObject { Q_OBJECT Q_PROPERTY(int x) };
 EOF

massif shows improvement from:
peak cost: "26,8 KB"  heap "2,1 KB"  heap extra "0 B"  stacks
to:
peak cost: "11,3 KB"  heap "2,2 KB"  heap extra "0 B"  stacks

In general, depending on source file high peak memory usage is reduced
from few to few hundreds KB, especially that the allocation used to
happen for each include file too.

Change-Id: I9c1c848be848444156af25a991b67161fb9d8b29
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
2014-10-30 16:41:39 +01:00
..
bootstrap Use new, supported APIs in OS X 10.10 and iOS 8.0 to get the OS version. 2014-09-12 22:01:58 +02:00
bootstrap-dbus Improve dbus cross compilation 2014-07-28 14:08:22 +02:00
moc Use file mapping in moc. 2014-10-30 16:41:39 +01:00
qdbuscpp2xml Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qdbusxml2cpp Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qdoc Merge remote-tracking branch 'origin/5.4' into dev 2014-10-20 19:12:25 +02:00
qlalr Update license headers and add new license files 2014-09-24 12:26:19 +02:00
rcc Add extra declarations to make rcc output pass -Wmissing-declarations 2014-10-25 11:48:43 +02:00
uic Merge remote-tracking branch 'origin/5.4' into dev 2014-10-09 17:56:52 +02:00