Stephen Leake <[email protected]> writes: > Progress report: > > I wrote some code to extract the cached text properties from a buffer, > and then time reapplying them when read from a string, as they would be > from an external parser that returned text properties instead of actions. > > For gnatcoll-xref.adb, that took 4 seconds.
But I had an idea in the shower: instead of outputting a full elisp form and using (eval (read-from-string ...)), just output the data needed for put-text-property, and read it with (string-to-int (buffer-substring ..)), using integer index into arrays for symbols to avoid string name lookups. In a simple test, that takes 0.31 seconds for gnatcoll-xref.adb. A little slow, but definitely worth persuing. So I don't need to work on the Emacs foreign function interface yet. Still a lot of work, but I already know how to do all of it. -- -- Stephe _______________________________________________ Emacs-ada-mode mailing list [email protected] http://host114.hostmonster.com/mailman/listinfo/emacs-ada-mode_stephe-leake.org
