I replaced the ones I know and keep in mind for other occurrences.

Thanks Alex.

Serkan.

14.03.2020 19:52 tarihinde Alex Harui yazdı:

Serkan,

The recommended code would be more like:

                                [Bindable]

                                public var jobListXmlCollection:XMLListCollection;

                                protected function group1_creationCompleteHandler(event:FlexEvent):void {

jobListXmlCollection = new XMLListCollection(jobListXml.children());

                                }

If you initialize an XMLListCollection without any constructor parameter, when you later set it, it has to unset the default, empty, XMLList.

It may not make a huge difference, but I would recommend doing it anyway.

-Alex

*From: *Serkan Taş <serkan....@likyateknoloji.com>
*Reply-To: *"users@royale.apache.org" <users@royale.apache.org>
*Date: *Friday, March 13, 2020 at 11:00 PM
*To: *"users@royale.apache.org" <users@royale.apache.org>, Alex Harui <aha...@adobe.com>
*Subject: *Re: Single call for data grid

The source for reference : source code <https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Flikyateknoloji%2Fpinaraui-royale%2Fblob%2Fmaster%2Fsrc%2Fcom%2Flikya%2Fpinara%2Fcomps%2Fjobdetail%2FJobListWithDetails.mxml&data=02%7C01%7Caharui%40adobe.com%7Cfdfb43483a524608b9f308d7c7dcf7d2%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C1%7C637197624173578025&sdata=ZxHmPvX7DHVlIk9FonvMVLVOFgaLOxGmj8bfpWZ%2B9BM%3D&reserved=0>

14.03.2020 08:53 tarihinde Serkan Taş yazdı:

    Actually I made the changes in test code but did not make so much
    difference. It decreased around 1 secs.

    For the real application things are  a bit different.

    It is declared in the parent component of the grid component :

                [Bindable]
                public var jobListXmlCollection:XMLListCollection =
    new XMLListCollection();


    and assigned value in the parent component in one place :

    in the function below, which is the result of rest call:

    protected function xmlService_resultHandler(event:ResultEvent):void

    jobListXmlCollection.source = jobListXml.children();


    I moved the initialization to the line before the assignment


    deceleration change to
        [Bindable]
                public var jobListXmlCollection:XMLListCollection

    and assignment ;

            jobListXmlCollection = new XMLListCollection()
                    jobListXmlCollection.source = jobListXml.children();


    but nothing changed in terms of consumed time.

    Serkan

    14.03.2020 07:21 tarihinde Alex Harui yazdı:

        Is this example before or after the suggested optimization for
        initializing the XMLListCollection?

        -Alex

        *From: *Serkan Taş <serkan....@likyateknoloji.com>
        <mailto:serkan....@likyateknoloji.com>
        *Reply-To: *"users@royale.apache.org"
        <mailto:users@royale.apache.org> <users@royale.apache.org>
        <mailto:users@royale.apache.org>
        *Date: *Friday, March 13, 2020 at 3:11 PM
        *To: *"users@royale.apache.org"
        <mailto:users@royale.apache.org> <users@royale.apache.org>
        <mailto:users@royale.apache.org>
        *Subject: *Re: Single call for data grid

        I will check listData issue.

        For the video, you can see that the duration is very long.
        There is a timestamp top right that you can check.

        What is your opinion ?

        13.03.2020 21:11 tarihinde Alex Harui yazdı:

            I suspect that one or more of your custom item renderers
            is not yet emulating the listData property.  Comment them
            all out, and comment them back in until you find the one(s).

            -Alex

            *From: *Serkan Taş <serkan....@likyateknoloji.com>
            <mailto:serkan....@likyateknoloji.com>
            *Reply-To: *"users@royale.apache.org"
            <mailto:users@royale.apache.org> <users@royale.apache.org>
            <mailto:users@royale.apache.org>
            *Date: *Friday, March 13, 2020 at 12:14 AM
            *To: *"users@royale.apache.org"
            <mailto:users@royale.apache.org> <users@royale.apache.org>
            <mailto:users@royale.apache.org>
            *Subject: *Single call for data grid


            Alex, here is the screen capture of the loading data grid
            and the exception

            https://drive.google.com/open?id=10uAGEa75pBqSqUXLCAyvZsHPc05R7pFt
            
<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdrive.google.com%2Fopen%3Fid%3D10uAGEa75pBqSqUXLCAyvZsHPc05R7pFt&data=02%7C01%7Caharui%40adobe.com%7Cfdfb43483a524608b9f308d7c7dcf7d2%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C1%7C637197624173587982&sdata=qW9dcWTtY2eNwGnL4sNcSNKLiRWWoS8uD%2Butxgs%2Bmzk%3D&reserved=0>

            Thanks,
            Serkan










Reply via email to