Skip to content

使用Buffer.from替代utf8.encode #112

@0xZoomEye

Description

@0xZoomEye

example 中数据写入 HBase 前都通过 uft8.encode 进行了一次编码操作,而实际的测试情况是通过这中方式编码缓慢而且 CPU 消耗彪升;可以通过 Buffer.from(x, 'uft8') 方式来解决此问题,经过实现性能往往会提升一个数据级。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions