How To make Java faster?

I built a program in Java with a database in MS ACCESS.
So, I need to use SQL to get the results of my queris from the tables in
a MS ACCESS file.
But I recognize that the program is very slow especially when there is a loop that exexute a method with a query statment and each time the loop runs, it takes the results of the method to call other method which also has a query statement.
Also I think that Java is very slow in general than other languges especially when extends JFrame. Is there a solution?

Well, java is not any slower.. it has got JIT, and with java 1.3 and 1.4 hotspot is enabled by default. JIT is technique thru which java compiles the byte code to the os specific format, and starts executing. Hotspot only compiles those spots that are invoked repeatedly.. Hotspot comess by default with 1.3 and 1.4. JIT can be enabled with 1.2 and previous version. So, java is not slower anymore as you think. It's something that was there in the beginning

Similar Messages

  • Slow Phone 4s with ios8!! How to make it faster?

    Slow Phone 4s with ios8!! How to make it faster? After upgraded ios8.1.1, my iPhone 4s Facebook become very slow response and always hand. Whastapp having same problem! Very lagging with safari too! It is really regret to upgrade since many peoples say upgrade will have this issue always

    Slow Phone 4s with ios8!! How to make it faster? After upgraded ios8.1.1, my iPhone 4s Facebook become very slow response and always hand. Whastapp having same problem! Very lagging with safari too! It is really regret to upgrade since many peoples say upgrade will have this issue always

  • How to make script faster

    Hi,
    I have a table with huge volume of data. I am doing following activity using SQL script
    1). alter table my_tab add new_col NUMBER(10);
    2). update my_tab set new_col= 50;
    3). alter table my_TAB modify new_col NOT NULL;
    4). Create index on my_tab(new_col);
    Above scrip is taking around 10 hours to excecute.
    Could any one please suggest how to make it fast.
    Thanks.

    amit_hum wrote:
    Hi,
    I have a table with huge volume of data. I am doing following activity using SQL script
    1). alter table my_tab add new_col NUMBER(10);
    2). update my_tab set new_col= 50;
    3). alter table my_TAB modify new_col NOT NULL;
    4). Create index on my_tab(new_col);
    Above scrip is taking around 10 hours to excecute.
    Could any one please suggest how to make it fast.
    Thanks.You haven't told us your database version.
    You haven't shown us the details of your table structure or an example of the data, or even how many rows is a "huge volume of data".
    Without proper information we would just be guessing and that doesn't help anybody.

  • How to DELETE millions of records. How to make it fast.

    Hi
    I need to delete near abt 134 millions of records from tables.
    How to make it faster? any trick , any settings.
    I am using Oracle 9i on Linux box.
    If suppose i use TRUNCATE . does it deletes all objects defined over tables like constraint, indexes etc.
    Thanks,
    Kuldeep

    hi
    SQL> create table te as select * from all_objects;
    Table created.
    SQL> create index te_ind on te ( owner);
    Index created.
    SQL> truncate table te;
    Table truncated.
    SQL> select index_name , status from user_indexes where table_name = 'TE';
    INDEX_NAME                     STATUS
    TE_IND                         VALID
    SQL> create table ti as select * from all_objects;
    Table created.
    SQL> create index ti_ind on ti ( owner);
    Index created.
    SQL> drop table ti;
    Table dropped.
    SQL> select index_name , status from user_indexes where table_name = 'TI';
    no rows selected
    SQL>regards
    Taj

  • How to make Mavericks faster on an "older" MacBook Pro?

    I have a late 2011 MacBook Pro, 2.2 GHz core i7 with 4 GB of RAM. I recently wiped my computer and restored to factory settings because it was getting slow, then I upgraded to Mavericks and it is even slower. It freezes often and takes a long time to load things. Is there any way to make it faster or improve it's function?

    Oh wow, I must be REALLY out of it, haha, don't know how I missed that.
    Hardware Information:
              MacBook Pro (15-inch, Late 2011)
              MacBook Pro - model: MacBookPro8,2
              1 2.2 GHz Intel Core i7 CPU: 4 cores
              4 GB RAM
    Video Information:
              Intel HD Graphics 3000 - VRAM: 384 MB
              AMD Radeon HD 6750M - VRAM: 512 MB
    System Software:
              OS X 10.9.1 (13B42) - Uptime: 0 days 4:2:0
    Disk Information:
              TOSHIBA MK5065GSXF disk0 : (500.11 GB)
                        EFI (disk0s1) <not mounted>: 209.7 MB
                        Dalek Caan (disk0s2) /: 499.25 GB (466.87 GB free)
                        Recovery HD (disk0s3) <not mounted>: 650 MB
              MATSHITADVD-R   UJ-8A8 
    USB Information:
              Apple Inc. FaceTime HD Camera (Built-in)
              Iomega Iomega Select HDD 500.11 GB
                        EFI (disk1s1) <not mounted>: 209.7 MB
                        FAT-32 (disk1s2) /Volumes/FAT-32: 400.11 GB (48.79 GB free)
                        Mac (disk1s3) /Volumes/Mac: 99.66 GB (27.63 GB free)
              Apple Inc. Apple Internal Keyboard / Trackpad
              Apple Inc. BRCM2070 Hub
                        Apple Inc. Bluetooth USB Host Controller
              Apple Computer, Inc. IR Receiver
    FireWire Information:
    Thunderbolt Information:
              Apple Inc. thunderbolt_bus
    Kernel Extensions:
    Problem System Launch Daemons:
    Problem System Launch Agents:
    Launch Daemons:
              [loaded] com.google.keystone.daemon.plist 3rd-Party support link
    Launch Agents:
              [loaded] com.google.keystone.agent.plist 3rd-Party support link
    User Launch Agents:
              [loaded] com.valvesoftware.steamclean.plist 3rd-Party support link
    User Login Items:
              iTunesHelper
              Steam
    Internet Plug-ins:
              googletalkbrowserplugin: Version: 4.9.1.16010 3rd-Party support link
              QuickTime Plugin: Version: 7.7.3
              o1dbrowserplugin: Version: 4.9.1.16010 3rd-Party support link
              npgtpo3dautoplugin: Version: 0.1.44.29 - SDK 10.5 3rd-Party support link
              Default Browser: Version: 537 - SDK 10.9
    Audio Plug-ins:
              BluetoothAudioPlugIn: Version: 1.0 - SDK 10.9
              AirPlay: Version: 1.9 - SDK 10.9
              AppleAVBAudio: Version: 2.0.0 - SDK 10.9
              iSightAudio: Version: 7.7.3 - SDK 10.9
    3rd Party Preference Panes:
              None
    Bad Fonts:
              None
    Old Applications:
              /Library/Printers/EPSON/InkjetPrinter2/Utility/UT4
                        Epson Printer Utility 4:          Version: 9.14 - SDK 10.5 3rd-Party support link
                        EpsonSuppliesTool4:          Version: 8.61 - SDK 10.5 3rd-Party support link
              MiroVideoConverter:          Version: 2.6 - SDK 10.0 3rd-Party support link
    Time Machine:
              Time Machine not configured!
    Top Processes by CPU:
                  10%          Skype
                   5%          WindowServer
                   3%          VLC
                   2%          EtreCheck
                   1%          coreaudiod
    Top Processes by Memory:
              182 MB          Google Chrome Helper
              131 MB          VLC
              123 MB          Google Chrome
              119 MB          Skype
              102 MB          Mail
    Virtual Memory Information:
              42 MB          Free RAM
              1.49 GB          Active RAM
              1.45 GB          Inactive RAM
              960 MB          Wired RAM
              1.17 GB          Page-ins
              2 MB          Page-outs

  • How to make qry fast

    I have a small query
    select * from x order by b asc
    its very slow how can i make it fast as i have to order .

    "Small" is a vague, relative term. It's the volume of data that matters more I would think, and I'm guessing your table is "large" for the hardware you are running on. In any case, if you are truly doing the select to "push it in some target table" then I would say first off, you don't need the "order by" in this query. Secondly, if you are really trying to load data to a table, perhaps it is the insert that you don't show here that is the problem?
    Check out /*+ APPEND */ and /*+ PARALLEL */ hints just for grins.
    MJG

  • How to make this faster?? read millions of record from txt file

    Hi there,
    I got an issue. There is a txt file contains 2 million records, I also got another file contains over 10000 numbers. Now, I need to compare this 10000 numbers with that 2 million records if any records contains a number which belongs to 10000 number set, i retrieve this record and keep it. later on, when i finish the comparison i'll write all the result records into a txt file.
    What kind of data structure shall i use to keep the records and numbers? how to make the comparison quicker? Any idea will do!
    Thanks!

    if i were to do it, i will insert bout the records into the db. then do an sql statement on the two tables to get the results. Then get the rs and output it to another text file.
    just my opinion. not sure if this is faster.
    Message was edited by:
    clarenceloh

  • How to make Portal faster?

    Hi all,
    The portal on which i am working has become very slow.It is NW04S Portal.
    It is taking a lot of time for processing.
    Can any one tell me <b>how to make my portal</b> <b>faster</b> by cleaning or any stuff.
    I vl award points if it is helpful to me.
    Thanks in advance.
    Message was edited by:
            Satish Dhanalakoti
    Message was edited by:
            Satish Dhanalakoti

    Hi,
    Refer this link
    https://websmp101.sap-ag.de/~form/sapnet?_SHORTKEY=01200252310000061538&_SCENARIO=01100035870000000112&_OBJECT=011000358700000590032004E
    Regards,
    Senthil K.

  • How to make mac faster

    my mac has become very slow in starting and during shut down. can anyone help to make it faster?

    How slow?

  • How to make a faster connection to a database?

    Hi there,
    I have a created sth like an ebook reader for html books. I have a highlight tool and a textfield to keep some notes for each page. When the user goes from one page to there other I do connect and disconnect to the database 4 times. One to save the highlights of the page, one to save the notes and another to load these in characteristics to my new page.
    Acutally I do sth like this:
          //Save the highlights and the notes of the current page
          no.saveNotes();
          hi.saveHighToDB();
           // Load and display specified page.
           ViewClass.getEditorPane().setPage(pageUrl);
           //Load the highlights and the notes of the new page
           hi.loadingMakeHighlight();
           no.LoadNotes();This make my program very slow. It takes along time to load the new page. The whole program, database and book run locally so it should be faster 'cause afterwards I want to put in the book and the database on a server.
    Is there a way to make less connections or sth to make it faster??
    Is it better/faster to make 1 connection to save the 2 things and 1 to load them? The saveNotes() and LoadNotes() are in the same class and the saveHighToDB() and loadingMakeHighlight() are in a different one. How I can solve this?
    Thanks in advance

    You need a connection pool so you can recycle connections. This will speed things up tremendously!

  • Painfully slow startup - any suggestions how to make it faster?

    Hi Everyone,
    Just thought I'd ask people - my 17" iMac G5 1.9GHz PowerPC with 512MB ram is painfully slow at start-up. Seems to take forever! Does anyone know how I could clear a lot of rubbish from my computer and someone make it faster.
    Would anyone recommend a complete re-install - would that improve speed?
    Any help appreciated, cheers,
    Mark

    Mark, you can clear space on your drive and speed it up by moving a lot of sound and video files to a DVD, or even better, to an external; Firewire drive that you can partition and also use as a clone boot disk.
    Go through your applications folder and look for stuff that you never use, then get AppZapper to remove all traces of them. You can also use Monolingual to remove the tons of extra languages installed with Word and OS X, just make sure you uncheck English and any other language you might use.
    Hope some of this helps,
    Miriam

  • Slow Equuim A200 - How to make it faster?

    Help!
    My Equium A200 has gone really slow. Keep getting not responding messages on internet.
    Even typing this is very slow. Im not very knowledgeable about computers but do keep security updated.
    Please help me if there is anything I can do.

    There are a lot options to make Windows faster.
    I can give you some examples:
    1. Check the msconfig: start =&gt; run =&gt; msconfig.
    At startup you can see all programs who started with the notebook. Remove the tick from the programs, they should not startup with Windows.
    2. Defragment your HDD: click on my computer =&gt; right click on the HDD =&gt; properties =&gt; tools =&gt; Defragment now.
    Defragmentation is a process that reduces the amount of fragmentation in file systems.
    Which OS (operating system) do you use? If you use Windows Vista, install SP1. If you use Windows XP, install SP2 or SP3.
    In my opinion Windows OneCare is not really good. Choose an other security suite. I use for a lot of years Kaspersky. I had never problems with it and the system runs fast.
    To check how much RAM do you have, make a right click on my computer =&gt; properties and there you can see it.
    If everything doesn&rsquo;t help, you should reinstall Windows with the Recovery image from Toshiba. All drivers and tools are including.
    But if you do this, backup your data first. The HDD will completely erased.

  • How to make real fast animations using CS5

    Hi,
    I need to make some fast moving animations like moving an image from one corner to another corner, how can I do that?

    If you need guaranteed framerates and playback speed, move on to the world of video and compositing tools. There is no way to enforce rendering speed of animated GIFs and the format doesn't have a fixed framerate. Not to mention the absence of motion blur rendering and otehr things in PS itself. That aside, simply use less frames to make things move faster, it just won't look smooth in PS because of what I mentioned...
    Mylenium

  • How can make java servlet sent soap message to other java web application

    hello,
    i want to make simple servlet send soap message to other java web application containing web service????
    for example
    web application " A " contain web service add two number
    java servlet " B " send soap message contain num1 and num2 to A to add them.
    how can do this????

    I tried that but my problem is that the code is so old. At least what I saw. I don't know how old is too old and I'm trying to do things "right." I saw code from 1998, but I don't know if that's still what you do. It might still work, but that doesn't mean it's correct. There's so much out there on Java that so old that half the time I'm not sure what to do because some other technology in J2EE or the latest Java SDK might have come up with a new way to do things. Thanks.

  • Write to files - how to make it faster?

    I have a program that creates a lot of html files and I've noticed that creating them is the bottleneck.
    Would anyone have an idea about how I could speed up the process? Here is my code:
        public void writeToFile() {
            openFileConnection();
            try {
                bw.write(pageStr.toString()); // pageStr is the file content (StringBuffer)
                bw.flush();
            } catch (Exception e) {
                System.out.println("Error while writing html file: " + e);
            closeFileConnection();
        private void openFileConnection() {
            try {
                bw = new BufferedWriter(new FileWriter(filePath));
            } catch (Exception e) {
                System.out.println("Error while creating html file: " + e);
        private void closeFileConnection() {
            try {
                if (bw != null) {
                    bw.close();
            } catch (Exception e) {
                System.out.println("Error while closing the writer: " + e);
        }This part of the program is repeated many times. Most of the files are very small.
    I have measured the time that the process above spends. Here are the results for creating 1416 files (ms):
    open     2312     avg     1
    write     16     avg     0
    flush     427     avg     0
    close     20726     avg     14
    Total process 30 s of which writeToFile operation 23 s.
    Especially I'm wondering why closing takes so long.
    (In the test environment I'm using Win2000 and JDK1.4.2.)

    Creating file with an average of 14 ms each is likely to be limited by the speeed of your disk. Make sure the write cache for the disk is enabled.
    Just because you have a PC disk which the sales people called "fast" doesn't mean it will support high performance. Even having multiple disks is unlikely to help you if you have windows which doesn't exploit multiple disks very well IMHO. If you have a disk subsystem with a non-volaile write cache you should see a dramatic jump in performance. (And a jump in the cost :)

Maybe you are looking for

  • A/R, A/P and MM for the periods

    Dear All, I closed all periods for A/P, A/R and MM for July 2009 so no-one could post to them. However, because the GL was still open for June, July and August, it allowed others to post to A/R; A/P; MM. When closing the periods we have to leave the

  • IPhone not being recognized by iTunes, after 10.5 upgrade

    I finally (!!) upgraded to Leopard and am now at 10.5.5. All has gone smoothly, with one exception. When I connect my iPhone via the provided USB cable, iTunes doesn't recognize it. iPhoto does, and the iPhone does charge while connected to the USB c

  • Whats the best sollution when you smash the screen on an iphone 4. I've had it 8 weeks :(

    I dropped my phone, had it 6-8 weeks - its in a protective case but the screen has shattered - what to do? What will it cost??

  • What is kernel task?

    I'm on the verge of buying a MBA and trying to get a good overview of the possible problems. Excuse my ignorance.... the only thing I can't get to grips with is 'kernel task' and 'kernel panic'. Could someone explain what these terms mean so I can ge

  • Audio sync issues with variable frame rates as well as .ts files

    I'm using Premiere Pro CS6 and CC, in Windows 8. I bought an AverMedia Live Gamer HD card to capture 1080p footage with, and the the videos it produces work perfectly during playback. No sync issues whatsoever. I'm saving them as MP4 at 30fps. The pr