[
https://issues.apache.org/jira/browse/ARROW-5290?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16838317#comment-16838317
]
Liya Fan commented on ARROW-5290:
---------------------------------
The assembly code of the safe API (when the null-checking is disabled)
!safe.png!
> Provide a flag to enable/disable null-checking in vectors' get methods
> ----------------------------------------------------------------------
>
> Key: ARROW-5290
> URL: https://issues.apache.org/jira/browse/ARROW-5290
> Project: Apache Arrow
> Issue Type: New Feature
> Components: Java
> Reporter: Liya Fan
> Assignee: Liya Fan
> Priority: Major
> Labels: pull-request-available
> Attachments: safe.png
>
> Time Spent: 2h
> Remaining Estimate: 0h
>
> For vector classes, the get method first checks if the value at the given
> index is null. If it is not null, the method goes ahead to retrieve the
> value.
> For some scenarios, the first check is redundant, because the application
> code has already checked the null, before calling the get method. This
> redundant check may have non-trivial performance overheads.
> So we add a flag to enable/disable the null checking, so the user can set the
> flag according to their own specific scenario.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)