Changeset [cd8e23474d39fee53b79c02e34e58de551dedf8d] by Sune Marcher
February 3rd, 2010 @ 07:18 AM
Notepad_plus.cpp: rewrite of menuID2LangType()
-
Focusing on readability, ease of extension for new language types, with smaller size as an added bonus - binary size statistics from VS2008 release mode. Likely faster as well; function isn't really speed-critical though.
-
Size statistics: ORIGINAL: 125 lines, 371 bytes code, 299 bytes jumptable = 670 bytes REWRITE: 41 lines, 53 bytes code, 54x2x1 table: 108 bytes = 161 bytes
[#36]
Signed-off-by: Sune Marcher sm@flork.dk
http://github.com/snemarch/npp-community/commit/cd8e23474d39fee53b7...
Committed by Sune Marcher
- M PowerEditor/src/Notepad_plus.cpp
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
Notepad++ Community Release