After profiling engine startup, the following changes were made:
- Avoid calls to Time() when initializing objects (checking the current full date & time is slow) instead preferred the high- performance timer. - PathTree only does wildcard pattern tests if wildcards as actually present in the path segments. - Block uses memcpy() to read larger sections of the buffer. - AtlasTexture does not make a separate copy of the subregion to upload to a texture, instead reading the data directly from the backing store image.
Performance|libcore|libgui: Various optimizations
After profiling engine startup, the following changes were made:
- Avoid calls to Time() when initializing objects (checking the
current full date & time is slow) instead preferred the high-
performance timer.
- PathTree only does wildcard pattern tests if wildcards as actually
present in the path segments.
- Block uses memcpy() to read larger sections of the buffer.
- AtlasTexture does not make a separate copy of the subregion to
upload to a texture, instead reading the data directly from the
backing store image.