Commit 52493428 authored by Yong Tang's avatar Yong Tang Committed by Shanqing Cai
Browse files

Memory allocation improvement for `decode_libsvm` (#15803)



* Memory allocation improvement for `decode_libsvm`

This fix is an improvement to 14330. Previously string split
was handled through `str_util::Split`, which may incur unnecessary
memory allocations. This fix uses StringPiece instead.

See comment 14330 for reference.

Signed-off-by: default avatarYong Tang <yong.tang.github@outlook.com>
parent dbc3ea9a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment