Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> the application itself has thousands of not millions of allocated objects for everything from UI elements to WordArt

There are ways to optimize those things, though, which developers might not be bothering with anymore. The Design Patterns book used a word processor as the example when explaining the flyweight pattern for efficiently representing lots of objects. OLE objects like WordArt support different states[0] and don't necessarily have to be active at all times.

[0] https://learn.microsoft.com/en-us/windows/win32/com/object-s...



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: