hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erik Holstad (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HBASE-1249) Rearchitecting of server, client, API, key format, etc for 0.20
Date Wed, 29 Apr 2009 22:49:30 GMT

    [ https://issues.apache.org/jira/browse/HBASE-1249?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12704390#action_12704390
] 

Erik Holstad commented on HBASE-1249:
-------------------------------------

Just for the people that are still a little bit sceptic that an algorithmic change can make
a great improvement in speed, you can just test this simple timing test for different m and
n and have a look at what the result is.

 public void timingTester(){
    long start = 0L;
    long stop  = 0L;
    int m = 100;
    int n = 100; 
    int size = m*n;
    int ret = 0;
    
    //old 
    start = System.nanoTime();
    for(int i=0; i<size; i++){
      ret = (2*i) -i; //or do something else
    }
    stop = System.nanoTime();
    System.out.println("old timer " +(stop-start));
    
    //new
    size = m+n;
    start = System.nanoTime();
    for(int i=0; i<size; i++){
      ret = (2*i) -i;
    }
    stop = System.nanoTime();
    System.out.println("new timer " +(stop-start));
  }


> Rearchitecting of server, client, API, key format, etc for 0.20
> ---------------------------------------------------------------
>
>                 Key: HBASE-1249
>                 URL: https://issues.apache.org/jira/browse/HBASE-1249
>             Project: Hadoop HBase
>          Issue Type: Improvement
>            Reporter: Jonathan Gray
>            Priority: Blocker
>             Fix For: 0.20.0
>
>         Attachments: HBASE-1249-Example-v1.pdf, HBASE-1249-Example-v2.pdf, HBASE-1249-GetQuery-v1.pdf,
HBASE-1249-GetQuery-v2.pdf, HBASE-1249-GetQuery-v3.pdf, HBASE-1249-GetQuery-v4.pdf, HBASE-1249-StoreFile-v1.pdf,
HBASE-1249-StoreFile-v4.pdf
>
>
> To discuss all the new and potential issues coming out of the change in key format (HBASE-1234):
zero-copy reads, client binary protocol, update of API (HBASE-880), server optimizations,
etc...

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


Mime
View raw message