The Gang of Four Design Patterns uses a word processor as an example, at least for some of their patterns, especially composite and flies.
Besides using C or C ++, can you really use these templates and object-oriented overhead, should they write a high-performance, full-featured word processor?
I know that Eclipse is written in Java, but I haven’t used it much, so I don’t know if it is all as fast or polished as something like Visual Studio, which has a C ++ text editing system.
As examples, I used only C ++ and Java. This question is more related to the overhead of having a large number of objects in memory, for example, in an application such as a word processor or even a game.
Design patterns promote abstraction at the expense of strengths, even if they usually indicate when you can get some kind of performance hit. Word processors and especially games get the most benefit from being as close to metal as possible.
I'm just wondering if anyone knew about the speed of an object-oriented text editor or a text editor that was not written in C ++, and whether they would build one using templates or whether they would not abstract from things
source share