dynamic table takes very long time to compile

Hello

in a small program, I need to create a wide range:

FIXED-SIZE ARRAY:
[27] Char hash [26] [999] [99] [16];

But not in all cases, the last item in the hash table has a value (string
15 bytes), so I want to create a dynamic array to save memory.

TABLE SIZE DYNAMICS:
char * hashtable [27] [26] [999] [99];
.......
If (strlen (hash_string)) hashtable [a] [b] [c] [d] = malloc (sizeof (char) *)
(strlen (hash_string) + 1)) ;

.......

In debug mode:

If I compile the program with the array of fixed size, all working properly and
the program runs immediately

If I compile the same program with the table dynamically (and using malloc)
It really takes time to compile. It seems that the program freezes,
But if I wait quite a long time (several minutes), the program runs

I am using CVI 2009

Any ideas why it takes so long if I use dynamic memory?

Thanks in advance,

Norbert Rieper
Bremerhaven

When CVI compiles the file in a configuration of debugging with debugging level value Standard or extended, then we allocate data protection user to track the State of each pointer in the table. For each of the pointer values 69 million that we allocate data to add to your executable file to control execution. These allowances are initially the apparent blow.

There are several ways to prevent CVI to distribute all of these additional data.

(1) change the level of debugging "no run-time checking.

(2) change the base type of the array of ' char *' to 'size_t '. You must also add a cast to all the references to the elements of the array.

(3) select it's Enable. Obj option' option for the file that contains the definition of the table. This turns off debugging for this .c file.

3 (b) move the declaration of the array to its own .c file and the option "Enable.obj" what .c file instead of the .c file that contains all the source data that uses the table.

Although you need only 70 MB for dynamically allocated strings, you must always 265 MB to store the array of pointers to 69 million.

-Michael

Tags: NI Software

Similar Questions

  • CHKDSK take very long time

    I have a system SATA drive appearing whenever it restarts chkdsk runs and it seems to work very well with no error, but then the system to reboot and the screen never beomes active. The computer seems to be peripheral, running lights, but the screen turns on and the keyboard synchronizes (it's a bluetooth). I let run now for 1 day, thinking that he was doing something, but nothing has changed. Previously, I let this happen and finally strong turned the computer off and when it restarts I stop the CHKDSK and the computer starts very well. Thoughts?

    Hello

    Stop chkdsk to run and then see if another error occurs.

    Disable or stop Auto CHKDSK during Windows startup - scroll to it.
    http://rahuldpatel.WordPress.com/2008/11/22/

    How can I stop CHKDSK from running each time my PC?
    http://www.OCModShop.com/OCModShop.aspx?a=874

    How to run check disk at startup in Vista - check methods 3 and 4
    http://www.Vistax64.com/tutorials/67612-check-disk-Chkdsk.html

    Video: Stop Check Disk from constantly running at startup in Windows Vista
    http://blogs.TechRepublic.com.com/itdojo/?p=193

    ChkDsk runs every time Windows starts.
    http://www.WinVistaClub.com/T20.html

    I hope this helps.

    Rob Brown - MS MVP - Windows Desktop Experience: Bike - Mark Twain said it right.

  • After that effects 2015.3 takes a long time to open, left after the closing process running

    My AE 2015.3 takes very long time to start. He gets the message "Initializing MediaCore" on the splash screen and then hangs there for 1-3 minutes. It opens also a ton of "Adobe After Effects 2015.3" tasks in the Task Manager, leaving them running even after I quit the program.

    Here is what my task manager looks at this time (no AE running)

    AECrazy.jpg

    So far, what I've done:

    1 uninstalled all Adobe software, including Adobe CC Panel

    2 uninstalled all 3rd party plugins, scripts, and presets

    3. manually deleted all files from adobe - complete cleaning

    4. re-installed AE and some other programs

    (all with reboot between the two).

    No difference.

    Help?

    Apparently, nVidia GeForce drivers are at fault. The break of v368.81 WHQL way Adobe applications communicate with Media Core, make After Effects, first and slow speed Grade, leaving the additional processes in their wake and spoil some plugins 3rd party.

    Returning to a previous driver nVidia solved all the problems.

  • My computer is very slow and takes a long time to connect and disconnect

    Original title: sign out of questions

    My computer is very slow and takes a long time to connect and disconnect. Sometimes I hit Logoff button and do not forget I have more work to do... is it possible to cancel the newspaper once it starts, or should I just wait what he log out completely and then reconnect? (It takes just forever)

    Install the background file. See if it suits it

  • With 32-bit and a clean install also takes a long time to start and a very long time to stop.

    I use 32-bit and a clean install also, it takes a very long time to start (and sometimes it will not) and a verlong tike to close

    Hello Duane,

    For more clarity and response, I divided it in its own thread.

    After your post, it seems that Vista 32 bit takes a long time to start and a very long time to stop.

    What are the specifications of material of this machine?

    We might want to try a clean boot and see how that affects the issue.

    More details about this is located at the following link:

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7

    Let us know if this helps solve this problem.

    Best regards

    Matthew_Ha

  • How to get rid of the msg "...". is very large and may take a long time to

    Hello
    Simple question:
    How to get rid of msg "...". is very large and might take a long time to load... »
    I tried to increase the number of cells under "App settings-> options-> warn if greater than 5 000 000 000 data form. I even tried to '0 '. Nothing works planning 9.3.1

    Hello

    That's how I've always changed the number of cells, after which display the message on the forms of data.

    There are 2 levels of adjustment. You can configure the application level, but users must select "Use Application Defaults" in the planning of the preferences of the user parameters. To do this, use the file-> Preferences and select schedule.

    Otherwise, you can set the value of the number of cells at the level of the user for ' warn if data form more xxxx ". It should solve the problem. This should be the installation program if you have not selected checkbox default Application for the user in the preferences of planning.

    If nothing else works, it is very difficult to guess, I would open a SR with Oracle.

    Let me know if it helps.

    See you soon
    RS

  • Computer HP laptop 14-d004tx - takes a long time to start whenever I turned it on

    It really bothers me that my new laptop, (just a week) when takes a lot of time before it starts. After the HP logo, it displays a blank page where my cursor can be moved, so he'll stay a very long time so I find myself stopping and then turn on again and again until it finally starts.

    Is this normal? It really takes a lot of my time specially I use my laptop for work. What should do?

    Thank you! I really need help here...

    Hello

    Since it is a week it would be better to contact HP in your area & report it.

    Meanwhile, a test of full hard disk & memory test by pressing F2 or F10 as soon as you turn on the system and on entering the BIOS, pass-> component test system Diagnostics.

  • desktop computer takes a long time to load after uninstall of netware

    Dear Pascal, recently, by chance, I installed the client service for Netware on my PC. He asked to restart the computer, and after reboot, logon screens became classic. I uninstalled netware by accessing the properties of LAN. I managed to restore logon screens using Microsoft resources available on the net. However, my PC now takes * for long time for the desktop icons and toolbar are displayed. I use Microsoft Windows XP Version 2002 SP3, Intel Core2Duo processor P8600 @2.40 Ghz with 2 GB of RAM on Lenovo Thinkpad R400. I understand that it is after uninstalling the netware client that my office is very very slow. Help me for a faster loading of the desktop computer. Best regards, Reba Shankar

    Hey Reba,

    Thanks for choosing Microsoft Community!

    You have reached the right forum. Try to solve this problem.

    If I understand correctly, you have some performance issues on windows XP computer.

     

    Let us try the following steps:

     

    Method 1: Any installed program must be uninstalled from Add and remove programs. You can just remove shortcuts from other places like LAN properties.

    Run the following fix - it to uninstall client services for Netware.

    Solve problems with programs that cannot be installed or uninstalled:

    http://support.Microsoft.com/mats/program_install_and_uninstall

     

    Method 2: See the following article:

     

    How to make a computer faster: 6 ways to speed up your PC:

    http://www.Microsoft.com/atwork/maintenance/speed.aspx#fBid=uQRRD6ZPxkC

     

    Important notes:

    ·         Running chkdsk on the drive if bad sectors are found on the disk hard when chkdsk attempts to repair this area if all available on which data can be lost.

    ·         The data files that are infected must be cleaned only by removing the file completely, which means that there is a risk of data loss.

    Hope the helps of information. Don't answer if you need assistance, we will be happy to help you.

  • Can any1 help me why my newly purchased Aspire e5-573 takes a long time to gt began

    Hi all

    I bought a new Acer laptop (Aspire E5 - 573) just 20 days ago, and it takes a long time to start (almost 8-10 minutes), although it works fine once it is started.

    Can someone please help me understand who is there any problem with my laptop, or it's just the way it works.

    I'm not a very irritable kind of guy and first use on laptop (per person).

    Help, please

    Best regards

    Ashish

    [edited for the protection of personal information - please do post any personal or unique information such as but not limited to names, email addresses, telephone numbers, serial numbers, etc..]

    Windows 8 and more, it is built in antivirus called Windows defender, it's enough.

  • Computer takes a long time to turn on

    original title: my sys to work is windows vista 32 and to the power of message 'configuration personlized for c/windows/system32/crss/crss.exe' appears and my computer take a very long time in order to, please inform me what I have to do

    My sys to work is windows vista 32 and to the power of message 'configuration personlized for c/windows/system32/crss/crss.exe' appears and my computer take a very long time in order to, please inform me what I have to do

    Try creating a different user account and check if the problem occurs on this account

    If we are not dealing with the problem in the new account, we can copy your files from your old account and transfer it to the new account

    Or

    Use system restore to restore your system to a previous state when it was working fine

    =================

    1. click 'Start' and type system restore in the search box, and then click "System Restore" in the section programs.

    When you are prompted by the User Account Control feature, click "continue".

    2. do one of the following

    * If there is a recommended restore point, click on choose a different restore point and then click Next.

    * If there no restore points recommended in the list, simply click next to continue.

    3. Select a restore point in which you know that the operating system works and then click on "next".

    5. in confirmation of your restore point page, click on "Finish".

    If this post can help solve your problem, please click the 'Mark as answer"If you find it useful, mark it as useful by clicking the 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • Problem downloading takes a long time

    I was downloading a file and its takes a long time to finish

    He has never finished downloading.  Is what size?

    You tried to cancel any download so it not a very large file, then restarting the download.

    What, and where, you download.

    You have problems with your Internet connection?

  • Adobe Acrobat Reader update takes a long time

    Lately, whenever I have trying to update Adobe Acrobat Reader on my MacBook Pro, it says "Installing Update" for a very long time (more than 30 min).  Why it takes so long?

    The normal download for installation of Player isn't final setup, this is a download manager to download the actual installer. Especially on Mac OS X, which doesn't seem to work reliable in all cases. I uninstall Adobe Reader and then start with a new download of the full installer via this link: Adobe - Adobe Acrobat Reader DC Distribution

  • Query takes a long time

    Hi Experts

    I'm using Oracle 11 g, I use under delete query to remove records of staging table.

    under query takes a long time (ranging from 1 hour, even there is no record to delete.

    I created payment_id indexes also did not help.

    delete from siebelwb.stg_p where payment_id not in (select * from siebel.s_src_payment)

    I know NOT of IN is degreding performace, is there another way to write above request so that we can remove them in NOT IN use.

    Try to use NOT EXISTS clause...

    Also you inner query must match the payment_id with query parent then here's the example query...

    removal of siebelwb.stg_p where THERE is NO payment_id (select 1 from siebel.s_src_payment where s_src_payment.payment_id = stg_p.payment_id)

  • Put into service Windows Server 2012 R2 takes a long time

    I created a simple bluerpint with Windows Server R2 2012 machine and the deployment of the Clone related vCAC. The whole process of commissioning is to take a very long time (> 1 hour). It seems that most of the time is passed to the workflow to work CustomizeOS stage. What could be the problem? I have not found the newspaper to find out where she is spending time. Can you help me solve this problem?

    I could solve this problem. There is a new Agent for Windows Server 2012 R2 guest. See VCAC 6.0.1 agent 2012 comments stuck Windows

  • UPGPTHASH App Engine Post Installation takes a long time

    C:\pt852\bin\client\winx86 > ETA CT - ORACLE - CD PSFNP - CO VP1 - CP VP1 r INSTALL - AI UPGPTHASH
    PeopleTools 8.52.11 - Application Engine
    Copyright (c) 1988-2012 Oracle and/or its affiliates.
    All rights reserved



    It is running for a very long time... It runs too long? Almost an hour now. I do a new install of FSCM 9.1 FP2 on tools 8.52.11 on Windows

    mmaller0319 wrote:
    C:\pt852\bin\client\winx86>PSAE - CT ORACLE - CD PSFNP - CO VP1 - CP VP1 r INSTALL - I UPGPTHASH
    PeopleTools 8.52.11 - Application Engine
    Copyright (c) 1988-2012 Oracle and/or its affiliates.
    All rights reserved

    UPGPTHASH always takes the time to run.

    .... I do a new install of FSCM 9.1 FP2 on tools 8.52.11 on Windows

    But UPGPTHASH is an element of task 7-1 that should be run only for delivered before 8.52 Peopletools Application. However, your application is based on PT8.52, which means that you don't need to perform all these tasks at all 7-1-x (check page 187).

    Nicolas.

Maybe you are looking for

  • Hi, Firefox team! You can add games in this browser?

    With the games, the costume designers of Firefox will be very happy! Games like Minecraft, series Angry Birds, neighbors of series of hell, Ricochet series etc... and achievments. This browser is incredible, you can do more...

  • DV import fails after 6 months

    Since last September, I use FCP x 10.2.2 on 27 "new screen Retina 5 K, many extra horses and external HDs, some vintage for a reason.  Until today, video DV was fortunately imported from my Panasonic AG-DV2500 Pro player who manages mini and standard

  • Tecra M2 - driver WLAN I need?

    Hello world I woke up this morning and my toshiba tecra m2 could not connect to the wireless network. I was using the intel PROSet / wireless to connect to the wireless network, and it could not connect. I uninstalled the software, hoping to use the

  • New user log on

    I have assinged a new user and password on my computer and when we try to open a session as long as the new user I get the following message: Service user profile Service does not have the logon - user profile cannot be loaded I deleted the account a

  • 4 ultrabook split of irrelevant of envy hinged cover

    Hi, I have a HP Envy 4 Ultrabook that I bought a while back - was not a year yet. He was perfectly fine but today when I opened my screen, I heard a snapping or clicking noise and saw that my left hinge was slightly out of place, and the side of the