Ignore:
Timestamp:
Aug 13, 2024, 11:54:04 AM (2 months ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
master
Children:
2870cb6, 4558df2
Parents:
4941716
Message:

After a years (or at least half a year) the CodeLocation? optimization is merged in. Added Symbol (using Racket's name for interned strings), and used it for CodeLocation? file names. The optimizes for the high number of copies - both instances with the same value and copy operations - and consistently brings down runtime by a few percent.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/CodeGen/CodeGenerator.cpp

    r4941716 r661e7b0  
    7979                currentLocation.first_line += 2;
    8080        } else {
    81                 output << "\n# " << to.first_line << " \"" << to.filename
     81                output << "\n# " << to.first_line << " \"" << to.filename.c_str()
    8282                       << "\"\n" << indent;
    8383                currentLocation = to;
Note: See TracChangeset for help on using the changeset viewer.