DataObjects-NET / dataobjects-net

https://dataobjects.net
MIT License
61 stars 25 forks source link

Intern short (1..2 chars) contents of TextNode; Statically preallocate Comma TextNode as mostly used #301

Closed SergeiPavlov closed 1 year ago

SergeiPavlov commented 1 year ago

Most typical TextNode is comma+space Cached queries may contain Megabytes of them: image

alex-kulakov commented 1 year ago

I'm going to change target branch to the 7.1 one, it's the version where reworked ContainerNode was introduced sounds reasonable to improve it there

SergeiPavlov commented 1 year ago

Static TextNode.Create(string ) methods, as all static methods should be before any instance methods.

done