Re: [racket-users] Can this be optimized?

2017-09-26 Thread Neil Van Dyke
A few off-the-cuff comments... * At first glance, looks like `consolidate` could be rewritten for wins a few regards (e.g., probably accumulate strings so no incremental string appends, computations that happen multiple times, unnecessary see whether the small utility procedures are efficient)

[racket-users] Can this be optimized?

2017-09-26 Thread Erich Rast
According to profiling, the following sxml-handling function (consolidate sxp) is a major bottleneck in my application. It reduces all subsequent sxml text elements with the same attributes to one and is part of exporting from text% to xml. I'm not used to optimizing Racket code. Does somebody ha