×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Jan 2012
    Posts
    7

    Slow execution speed

    Hello All,

    I am currently working on a Symbian project using VC++. Its a desktop based project. From this project I am adding contact on phone. Project working fine for all Symbian S60 device. But my problem is that its execution speed on N96,N97,N81,N82,N85 is very slow and on Nokia 5233 its execution speed is normal.
    This slow execution speed on some device is a big issue for my project.

    I am requesting you all please reply your valuable advice regarding this issue.
    Thanks in Advance
    Tapas

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,166

    Re: Slow execution speed

    You should try determining on what sections on your code are taking extensive time to execute, and then you should have a close look into the code sections and see whether there is anything you could do to speed it up.

    if you are experiencing UI's not being responsive, then do see that you are using real active object implementation and that you don't have tight loops or other parts that would basically hang the code.

  3. #3
    Registered User
    Join Date
    Jan 2012
    Posts
    7

    Re: Slow execution speed

    Hello All,

    I am using the below code:

    void AddContact::WriteItem(DWORD dwFolderId, LPVOID pItemData)
    {
    CAOPERATIONHANDLE hOperHandle = NULL;
    DWORD dwRet = CABeginOperation(m_hCurrentConnection, 0, &hOperHandle);
    if(dwRet != CONA_OK)
    {
    std::cout <<GetErrorMessage(dwRet)<< std::endl;
    }
    CA_ITEM_ID itemUid = {0};
    itemUid.dwSize = sizeof(itemUid);
    itemUid.dwFolderId = dwFolderId;
    dwRet = CAWriteItem(hOperHandle, &itemUid, 0, CA_DATA_FORMAT_STRUCT, pItemData);

    if(dwRet == CONA_OK)
    {
    CA_ID_LIST caIDList = {0};
    caIDList.dwSize = sizeof(caIDList);
    dwRet = CACommitOperations(hOperHandle, &caIDList);
    if(dwRet != CONA_OK)
    {
    std::cout <<GetErrorMessage(dwRet)<< std::endl;
    }
    }
    else
    {
    std::cout <<GetErrorMessage(dwRet)<< std::endl;
    }

    dwRet = CAEndOperation(hOperHandle);
    if(dwRet != CONA_OK)
    {
    std::cout <<GetErrorMessage(dwRet)<< std::endl;
    }

    dwRet = CAFreeItemData(m_hCurrentConnection, CA_DATA_FORMAT_STRUCT, pItemData);
    if(dwRet != CONA_OK)
    {
    std::cout <<GetErrorMessage(dwRet)<< std::endl;
    }
    }

    I have debug the code and time actually taking on line:

    dwRet = CACommitOperations(hOperHandle, &caIDList);

    Sometimes only this line taking 4 - 5 second for execution.
    Actually slow time are coming from this line.

    Thanks in Advance
    Tapas

  4. #4
    Registered User
    Join Date
    Jan 2012
    Posts
    7

    Re: Slow execution speed

    Hello All,

    I am requesting you please share your valuable experience with me regarding this issue.
    Its a big issue for me.
    I am waiting your response.

    Thanks & Regards
    tapas

  5. #5
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,166

    Re: Slow execution speed

    I have no idea on what that coding is, so I would not have any comments on it.

Similar Threads

  1. Speed is slow when changing the font size of editor
    By whitewinds in forum Symbian User Interface
    Replies: 3
    Last Post: 2009-10-22, 10:15
  2. Speed of Emulator is Slow
    By kush_192 in forum Symbian
    Replies: 2
    Last Post: 2008-12-22, 18:32
  3. Very slow speed when transfering image between 2 NFC phones
    By chidungbien in forum Near Field Communication
    Replies: 2
    Last Post: 2008-04-03, 14:47
  4. emulator rendering speed slow?
    By sumn79 in forum Symbian
    Replies: 0
    Last Post: 2004-03-02, 04:19
  5. instruction execution speed of 3650
    By msujee in forum General Development Questions
    Replies: 0
    Last Post: 2003-06-16, 15:31

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×