harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tim Ellison (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (HARMONY-4039) [classlib][luni] Socket implementation is too slow
Date Thu, 20 Nov 2008 16:20:44 GMT

     [ https://issues.apache.org/jira/browse/HARMONY-4039?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Tim Ellison resolved HARMONY-4039.

    Resolution: Fixed

I fixed this in r719214, with a different approach to the one you suggested in your original

Now we determine the number of available bytes for a read using a faster ioctl call.

> [classlib][luni] Socket implementation is too slow
> --------------------------------------------------
>                 Key: HARMONY-4039
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4039
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Boris Kuznetsov
>            Assignee: Tim Ellison
>         Attachments: patch.txt, test.java
> I noticed that Harmony classlib works too slowly with MySQL (both on DRLVM and Jrockit).
> The reason is the socket implementation: availableStreamImpl uses 1 ms timeout for hysock_select_read().
> It leads to 0.015 sec wait on select call for every available().
> Here are the test which demonstrate the problem and proposed patch.
> harmony-jre-r533500\bin\java test
> estimatedTime 15625
> After patch applying:
> java test
> estimatedTime 10

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

View raw message