Changeset [4317709c9499ee0e6dca6d81f23da9f430b6c917] by Sune Marcher

February 3rd, 2010 @ 12:15 PM

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
  • Hopefully fixed git version history that I messed up previously :)

[#36]

Signed-off-by: Sune Marcher sm@flork.dk
http://github.com/snemarch/npp-community/commit/4317709c9499ee0e6dc...

Committed by Sune Marcher

  • M PowerEditor/src/Notepad_plus.cpp
New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Notepad++ Community Release

Shared Ticket Bins