Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
nio Buffer 系列 put 方法是否有很多开销?我有一些 FloatBuffers 和 ByteBuffers 需要容纳 4 到 8 个元素,并且这些值还没有保存在数组中。创建一个临时数组,填充它并调用一次 put 方法是否更有效,或者不打扰数组并为每个元素调用 put?