[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fred



A question for FRED hackers:

I need to find occurences in a FRED window of a certain style
(in fact Underline style), from inside a program. So, I will
have to search the whole buffer. Everything I tried has been
painfully slow. I noticed that the Search dialog can cover a
200K file in a very impressive less than 1 second! Are the tools
necessary to this kind of performance exported, and if yes
what are they? Or are esoteric things like assembler programming
involved!?

(dotimes (k (buffer-size buffer))
  (buffer-char buffer k))
takes > 25 seconds for a 200K!

Any clues will be highly appreciated.
-- 
Guillaume Cartier
cartier@math.uqam.ca
LACIM, Universite du Quebec a Montreal.