You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Doug Cutting (JIRA)" <ji...@apache.org> on 2010/04/29 01:45:55 UTC

[jira] Created: (AVRO-532) Java: optimize Utf8#toString() and 'new Utf8(String)'

Java: optimize Utf8#toString() and 'new Utf8(String)'
-----------------------------------------------------

                 Key: AVRO-532
                 URL: https://issues.apache.org/jira/browse/AVRO-532
             Project: Avro
          Issue Type: Improvement
          Components: java
            Reporter: Doug Cutting


Avro's Specific and Generic Java APIs frequently convert Java Strings to Avro Utf8.  This conversion might be optimized.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (AVRO-532) Java: optimize Utf8#toString() and 'new Utf8(String)'

Posted by "Ken Krugler (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AVRO-532?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12862019#action_12862019 ] 

Ken Krugler commented on AVRO-532:
----------------------------------

I added an example for Bryan as a comment on the [THRIFT-765] issue.

> Java: optimize Utf8#toString() and 'new Utf8(String)'
> -----------------------------------------------------
>
>                 Key: AVRO-532
>                 URL: https://issues.apache.org/jira/browse/AVRO-532
>             Project: Avro
>          Issue Type: Improvement
>          Components: java
>            Reporter: Doug Cutting
>
> Avro's Specific and Generic Java APIs frequently convert Java Strings to Avro Utf8.  This conversion might be optimized.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (AVRO-532) Java: optimize Utf8#toString() and 'new Utf8(String)'

Posted by "Doug Cutting (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AVRO-532?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12862319#action_12862319 ] 

Doug Cutting commented on AVRO-532:
-----------------------------------

I now think THRIFT-765 actually does handle surrogate pairs.  Should we copy that code?

> Java: optimize Utf8#toString() and 'new Utf8(String)'
> -----------------------------------------------------
>
>                 Key: AVRO-532
>                 URL: https://issues.apache.org/jira/browse/AVRO-532
>             Project: Avro
>          Issue Type: Improvement
>          Components: java
>            Reporter: Doug Cutting
>
> Avro's Specific and Generic Java APIs frequently convert Java Strings to Avro Utf8.  This conversion might be optimized.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (AVRO-532) Java: optimize Utf8#toString() and 'new Utf8(String)'

Posted by "Milind Bhandarkar (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AVRO-532?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12862344#action_12862344 ] 

Milind Bhandarkar commented on AVRO-532:
----------------------------------------

Hadoop record IO has had the efficient and proper handling of surrogate pairs since beginning.

> Java: optimize Utf8#toString() and 'new Utf8(String)'
> -----------------------------------------------------
>
>                 Key: AVRO-532
>                 URL: https://issues.apache.org/jira/browse/AVRO-532
>             Project: Avro
>          Issue Type: Improvement
>          Components: java
>            Reporter: Doug Cutting
>
> Avro's Specific and Generic Java APIs frequently convert Java Strings to Avro Utf8.  This conversion might be optimized.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (AVRO-532) Java: optimize Utf8#toString() and 'new Utf8(String)'

Posted by "Doug Cutting (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AVRO-532?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12862001#action_12862001 ] 

Doug Cutting commented on AVRO-532:
-----------------------------------

THRIFT-765 contains code that could be used to optimize this, but that code does not appear to yet handle surrogate pairs correctly.

> Java: optimize Utf8#toString() and 'new Utf8(String)'
> -----------------------------------------------------
>
>                 Key: AVRO-532
>                 URL: https://issues.apache.org/jira/browse/AVRO-532
>             Project: Avro
>          Issue Type: Improvement
>          Components: java
>            Reporter: Doug Cutting
>
> Avro's Specific and Generic Java APIs frequently convert Java Strings to Avro Utf8.  This conversion might be optimized.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.