什么是“规范表”?
“‘规范表’是什么?我找不到它的任何描述。谁能提供一个例子吗?”
`What's the 'canonical table?I can't find any description of it.Can anyone provide a example?'
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您是否正在阅读Java 性能调优?我在那里看到了这些概念。
规范对象意味着只有一个引用指向它的对象,不可能有任何副本保持相同的状态。
用几个对象替换一个对象的多个副本的活动通常被称为规范化对象。
例如,布尔值可以被规范化,但事实并非如此,因为可以使用 new 创建新对象,因此可以创建多个具有相同状态的实例。
规范查找表是某种包含对这些规范对象池的引用的缓存。
Are you reading Java Performance Tuning? I saw those concepts in there.
A canonical object means an object with a single reference pointed to it, with no copies holding the same state possible.
The
activity of replacing multiple copies of an object with just a few objects is often referred to as canonicalizing objects.
For example Boolean, could have been canocalized, but it were not because new objects can be created with new, thus it's possible to create more than one instance with the same state.
A Canonical Lookup Table is some sort of cache containing references to those canonical object pool.