Ben Wing <ben(a)666.com> writes:
stephen is correct about what needs to be done to optimize this.
other than caching of the sort he mentions, there isn't much that
can obviously be done to speed up get-text-properties. if you look
at the code you'll see it basically boils down to a map-extents call
Are you sure about this? get-text-property ends up calling extent_at
in a loop, and each invocation of extent_at calls map_extents_bytind.
I might be misreading the code, but to me this indicates a possibility
that get-text-property requires time proportional to n^2, where n is
the number of extents in the buffer.
Please correct me if I'm wrong.