Edgewall Software

Opened 15 years ago

Last modified 8 years ago

#389 new enhancement

Just noticed that whenever a stream will be serialized it will _ensure() itself for being a stream

Reported by: Carsten Klein <carsten.klein@…> Owned by: cmlenz
Priority: minor Milestone: 0.9
Component: Serialization Version: 0.6
Keywords: Cc: wyuenho@…

Description

return get_serializer(method, kwargs)(_ensure(self))

Maybe this can be omitted? Provably adding a few percentiles to overall performance?

Always provided that once a genshi stream was instantiated it must only contain/yield genshi stream events.

Or is there a different use case that I have currently overlooked?

Change History (2)

comment:1 Changed 14 years ago by Yuen Ho Wong <wyuenho@…>

  • Cc wyuenho@… added

I'm quite curious about this myself. Is that _ensure() call really necessary?

comment:2 Changed 8 years ago by hodgestar

  • Milestone changed from 0.7 to 0.9

Moved to milestone 0.9.

Note: See TracTickets for help on using tickets.