有没有办法让Nokogiri冻结它在解析文档中包含的所有字符串?
解析大量XML可能会导致许多重复的字符串,例如元素名称。
有没有办法指示Nokogiri冻结在解析的文档中返回的所有字符串?这可能使运行时可以将给定文本的所有用途合并为内存中的单个对象,对吗?
Parsing large amounts of XML can result in many duplicate strings, such as with element names.
Is there a way to instruct Nokogiri to freeze all strings it returns in the parsed document? This might enable the runtime to coalesce all uses of a given piece of text into a single object in memory, right?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论