cp-tools-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Cp-tools-discuss] [support #100520] speed patch


From: nobody
Subject: [Cp-tools-discuss] [support #100520] speed patch
Date: Tue, 14 Oct 2003 07:31:17 -0400
User-agent: Mozilla/5.0 (X11; U; Linux i686) Gecko/20030701 Galeon/1.3.7


Support Request #100520, was updated on Tue 03/05/2002 at 07:41
You can respond by visiting: 
http://savannah.gnu.org/support/?func=detailsupport&support_id=100520&group_id=508

Category: None
Status: Open
Priority: 5
Summary: speed patch

By: alexl
Date: Tue 10/14/2003 at 04:31
Logged In: YES 
user_id=1168
Browser: Mozilla/5.0 (X11; U; Linux i686) Gecko/20030701 Galeon/1.3.7

I'm cleaning out some old bug reports.  Please submit patch

here:



http://savannah.gnu.org/patch/?group=cp-tools



if you are still having problems.

----------------------------------------------------------------------

By: sadinoff
Date: Tue 03/05/2002 at 07:41
Logged In: YES 
user_id=5632
Browser: Opera/6.01 (Windows 2000; U)  [en]

here's more of a style patch which alleviates the moral weakness of 
using += repeatedly on a string.



*** Toolkit.java.orig2  Tue 
Mar  5 10:35:10 2002

--- Toolkit.java        Tue Mar  5 10:37:45 
2002

***************

*** 6,14 ****

  

  public class Toolkit 
{

  

!     public static String empty;

  

!     static {

        empty="";

  
        for (int i=0; i<512; ++i) empty+=(char)32;

      }

--- 6,21 ----

  

  public 
class Toolkit {

  

!     public final static String empty = 
repeatChar( ' ',512 );

  

!     private static String repeatChar( 
char theChar, int count )

!     {

!         StringBuffer buf = new 
StringBuffer(count);

!         for(int i = 0 ; i < count ; i++ )

!             
buf.append(theChar);

!         return buf.toString();

!     }

!         

  
        empty="";

        for (int i=0; i<512; ++i) empty+=(char)32;

      }

----------------------------------------------------------------------
You can respond by visiting: 
http://savannah.gnu.org/support/?func=detailsupport&support_id=100520&group_id=508

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]