Re: superGetter very very slow

2016-04-25 Thread lizhi
https://github.com/matrix3d/spriteflexjs/tree/master/test/src/supertest the s1 s2 s3 s4 -- View this message in context: http://apache-flex-development.247.n4.nabble.com/superGetter-very-very-slow-tp52574p52606.html Sent from the Apache Flex Development mailing list archive at Nabble.com.

Re: superGetter very very slow

2016-04-25 Thread lizhi
simple test cast here package { import supertest.S1; import supertest.S4; /** * ... * @author lizhi */ public class SuperTest2 { private var ss:Array = []; public function SuperTest2()

Re: superGetter very very slow

2016-04-25 Thread lizhi
yes,it easy code.just use my s1 s2 s3 s4. and the my for(0...1) and test the s1.test vs the s4.test use gettimer() it is easy code -- View this message in context: http://apache-flex-development.247.n4.nabble.com/superGetter-very-very-slow-tp52574p52604.html Sent from the Apache Flex

Re: superGetter very very slow

2016-04-25 Thread Alex Harui
I would prefer to start with a simple test case that doesn't involve your framework. On 4/25/16, 9:08 PM, "lizhi" wrote: >it is just simple testcast. >just use the sprite and stats > >just s4,s3,s2,s1 > > > >-- >View this message in context: >http://apache-flex-development.247.n4.nabble.com/

Re: superGetter very very slow

2016-04-25 Thread lizhi
it is just simple testcast. just use the sprite and stats just s4,s3,s2,s1 -- View this message in context: http://apache-flex-development.247.n4.nabble.com/superGetter-very-very-slow-tp52574p52602.html Sent from the Apache Flex Development mailing list archive at Nabble.com.

Re: superGetter very very slow

2016-04-25 Thread Alex Harui
You have a test case that shows 10x performance cost? Please file a bug with a simple test case. -Alex On 4/25/16, 8:36 PM, "lizhi" wrote: >I am not familiar with JS,and i have some idea now.but it is must slow >10x. >so maybe some one have some idea. > > > >-- >View this message in context: >

Re: superGetter very very slow

2016-04-25 Thread lizhi
I am not familiar with JS,and i have some idea now.but it is must slow 10x. so maybe some one have some idea. -- View this message in context: http://apache-flex-development.247.n4.nabble.com/superGetter-very-very-slow-tp52574p52600.html Sent from the Apache Flex Development mailing list ar

Re: superGetter very very slow

2016-04-25 Thread Alex Harui
On 4/25/16, 6:03 PM, "lizhi" wrote: >i have no idea now. >but i just override the set(not override get) > >but the make get slow. I was unable to find a way to override setter and not the getter. So yes, there is overhead, but I don't have a better solution at this time. -Alex

Re: superGetter very very slow

2016-04-25 Thread lizhi
i have no idea now. but i just override the set(not override get) but the make get slow. pls try -- View this message in context: http://apache-flex-development.247.n4.nabble.com/superGetter-very-very-slow-tp52574p52598.html Sent from the Apache Flex Development mailing list archive at N

Re: AW: AW: [FALCONJX] Merging Maven refactor in to develop branch

2016-04-25 Thread Alex Harui
On 4/25/16, 2:49 PM, "Christofer Dutz" wrote: >Hi Alex, > >I'll have a look at this tomorrow. Are you ok if I push the merge and potentially break the Maven build? > >But I really hope that we can keep things stable for at least a few days >from now on. I think once the merge is pushed, fol

AW: AW: [FALCONJX] Merging Maven refactor in to develop branch

2016-04-25 Thread Christofer Dutz
Hi Alex, I'll have a look at this tomorrow. But I really hope that we can keep things stable for at least a few days from now on. Chris Von: Alex Harui Gesendet: Montag, 25. April 2016 23:05 An: dev@flex.apache.org Betreff: Re: AW: [FALCONJX] Merging M

Re: flexjs foreach very slow

2016-04-25 Thread Josh Tynjala
I also commented on JIRA with information about a best practice when using for-in in JavaScript that avoids that issue. - Josh On Mon, Apr 25, 2016 at 11:33 AM, Harbs wrote: > I don’t think I realized that for each can be used for normal Objects in > ActionScript. I always assumed it was restri

Re: AW: [FALCONJX] Merging Maven refactor in to develop branch

2016-04-25 Thread Alex Harui
On 4/25/16, 10:38 AM, "Christofer Dutz" wrote: >No problem at all ... for me it will make things a lot easier as I no >longer have to merge things manually ... looking forward to this :-) I was going to push the merge, but I think the Maven build will need fixing, and I'm not sure what is the be

Re: flexjs foreach very slow

2016-04-25 Thread Harbs
I don’t think I realized that for each can be used for normal Objects in ActionScript. I always assumed it was restricted to array-like objects to loop through the indexed values. Like I mentioned in the JIRA here: https://issues.apache.org/jira/browse/FLEX-35070 that for-in is not a good repl

Re: [FalconJX] compiling non-browser javascript

2016-04-25 Thread Harbs
I was guessing that the release would probably work. I am concerned about debugging though. I will probably try this suggestion next week and see how far I can get without further help. Chances are I’ll be back here before I’m successful though… ;-) Thanks! Harbs On Apr 25, 2016, at 6:27 PM, A

AW: [FALCONJX] Merging Maven refactor in to develop branch

2016-04-25 Thread Christofer Dutz
No problem at all ... for me it will make things a lot easier as I no longer have to merge things manually ... looking forward to this :-) Chris Von: Alex Harui Gesendet: Montag, 25. April 2016 19:18 An: dev@flex.apache.org Betreff: [FALCONJX] Merging Ma

[FALCONJX] Merging Maven refactor in to develop branch

2016-04-25 Thread Alex Harui
OK, I think it is time to merge the Maven branch in to develop. This will be a bit disruptive as lots of files changed folders. Also I haven't fixed up the Eclipse projects. I think I will fix up the Eclipse projects after the merge. I will start the merge in a couple of hours, so this is your

Re: AW: AW: AW: AW: [FlexJS] Status on Maven migration

2016-04-25 Thread Alex Harui
On 4/23/16, 7:05 AM, "Alex Harui" wrote: > >> >>Regarding the merge ... I'm ready when you are. > >I want to verify the install of a nightly will work. Might take all >weekend to get that far. OK, I think the nightly will work now. I will take care of merging recent changes in the develop br

Re: [FalconJX] compiling non-browser javascript

2016-04-25 Thread Alex Harui
On 4/25/16, 8:16 AM, "Josh Tynjala" wrote: >In the bin/js-release directory, all of the generated JavaScript is >concatenated into a single file, so it no longer uses goog.require(). That >should work in environments that cannot load multiple scripts. I was about to suggest that as well. By d

Re: flexjs foreach very slow

2016-04-25 Thread Josh Tynjala
for-each loops are commonly used with string keys too, so I'm guessing that's why the code gets converted to a for-in loop. That would be fully compatible with both integer and string keys. I guess if the target is an Array or Vector, it would be possible to use a for(;;) loop instead. It could sti

Re: [FalconJX] compiling non-browser javascript

2016-04-25 Thread Josh Tynjala
In the bin/js-release directory, all of the generated JavaScript is concatenated into a single file, so it no longer uses goog.require(). That should work in environments that cannot load multiple scripts. - Josh On Mon, Apr 25, 2016 at 12:35 AM, Harbs wrote: > I would really like to use Falcon

Re: flexjs donation the sorton code

2016-04-25 Thread Alex Harui
Hi Lizhi, Can you modify the code so it looks like a patch to Language.as? Then generate a pull request or attach the patch to a JIRA issue. The compiler will currently turn var a:Array; a.sortOn('foo'); into Org.apache.flex.utils.Language.sortOn(a, 'foo'); Thanks, -Alex On 4/25/16, 12:16

Re: superGetter very very slow

2016-04-25 Thread Alex Harui
Do you have a better way to do it? -Alex On 4/25/16, 1:46 AM, "lizhi" wrote: >just see >https://github.com/matrix3d/spriteflexjs/blob/master/test/src/SuperTest.as > >and see the s1.as s2.as s3.as s4.as > >thanks. > > > >-- >View this message in context: >http://apache-flex-development.247.n

Re: flexjs remove chinese text

2016-04-25 Thread Alex Harui
Please log a bug for that as well. On 4/25/16, 2:39 AM, "lizhi" wrote: >var str:String ="你好" > >get js > >var str =""; > > > >-- >View this message in context: >http://apache-flex-development.247.n4.nabble.com/flexjs-remove-chinese >-text-tp52581.html >Sent from the Apache Flex Development m

Re: flexjs for bug

2016-04-25 Thread Harbs
Log a bug: https://issues.apache.org/jira/browse/FLEX/ On Apr 25, 2016, at 12:38 PM, lizhi wrote: > yes,you code it is very good. > but it is just the as3,js,c++,base code,the flexjs it is a build tool,why > not get the func? >

flexjs remove chinese text

2016-04-25 Thread lizhi
var str:String ="你好" get js var str =""; -- View this message in context: http://apache-flex-development.247.n4.nabble.com/flexjs-remove-chinese-text-tp52581.html Sent from the Apache Flex Development mailing list archive at Nabble.com.

Re: flexjs for bug

2016-04-25 Thread lizhi
yes,you code it is very good. but it is just the as3,js,c++,base code,the flexjs it is a build tool,why not get the func? -- View this message in context: http://apache-flex-development.247.n4.nabble.com/flexjs-for-b

Re: flexjs for bug

2016-04-25 Thread Andrew Wetmore
I think I would do it like this: len:int = arr.length; for (var i:int = 0; i < len; i++) { On Mon, Apr 25, 2016 at 5:27 AM, lizhi wrote: > code like this? > > Error: Syntax error: expecting rightparen before semicolon. > for (var i:int = 0; len:int = arr.length; i < len

Re: flexjs for bug

2016-04-25 Thread Tom Chiverton
It's probably because in for(var i:int=0,len:int =arr.length;i ?are you test as code in flash ide?why ;? for(;;;)?! -- View this message in context: http://apache-flex-development.247.n4.nabble.com/flexjs-for-bug-tp52573p52576.html Sent from the Apache Flex Development mailing list archiv

Re: flexjs for bug

2016-04-25 Thread lizhi
code like this? Error: Syntax error: expecting rightparen before semicolon. for (var i:int = 0; len:int = arr.length; i < len; i++){ -- View this message in context: http://apache-flex-development.247.n4.nabble.com/flexjs-for-bug-tp52573p52577.html Sent from the Apa

Re: flexjs for bug

2016-04-25 Thread lizhi
?are you test as code in flash ide?why ;? for(;;;)?! -- View this message in context: http://apache-flex-development.247.n4.nabble.com/flexjs-for-bug-tp52573p52576.html Sent from the Apache Flex Development mailing list archive at Nabble.com.

Re: flexjs for bug

2016-04-25 Thread Andrew Wetmore
I think you need ";" instead of "," after "i:int=0" On Mon, Apr 25, 2016 at 4:13 AM, lizhi wrote: > for(var i:int=0,len:int =arr.length;i > } > > gen error > > > > -- > View this message in context: > http://apache-flex-development.247.n4.nabble.com/flexjs-for-bug-tp52573.html > Sent from th

superGetter very very slow

2016-04-25 Thread lizhi
just see https://github.com/matrix3d/spriteflexjs/blob/master/test/src/SuperTest.as and see the s1.as s2.as s3.as s4.as thanks. -- View this message in context: http://apache-flex-development.247.n4.nabble.com/superGetter-very-very-slow-tp52574.html Sent from the Apache Flex Development m

flexjs for bug

2016-04-25 Thread lizhi
for(var i:int=0,len:int =arr.length;ihttp://apache-flex-development.247.n4.nabble.com/flexjs-for-bug-tp52573.html Sent from the Apache Flex Development mailing list archive at Nabble.com.

Re: flexjs foreach very slow

2016-04-25 Thread Harbs
Please add a comment to this JIRA: https://issues.apache.org/jira/browse/FLEX-35070 On Apr 25, 2016, at 10:37 AM, lizhi wrote: > i do not konw the best code,but this code fast than now > > //slow code > var foreachiter0_target = this.ss; > for (var foreachiter0 in foreachiter0_target) > { >

flexjs foreach very slow

2016-04-25 Thread lizhi
i do not konw the best code,but this code fast than now //slow code var foreachiter0_target = this.ss; for (var foreachiter0 in foreachiter0_target) { var s = foreachiter0_target[foreachiter0]; { }} //more fast code var len=this.ss.length; for(var i=0;ihttp://apache-flex-developm

Re: flexjs donation the sorton code

2016-04-25 Thread lizhi
i do not know. but other post,the alex say,i can code use the as http://apache-flex-development.247.n4.nabble.com/flexjs-sorton-td52094.html -- View this message in context: http://apache-flex-development.247.n4.nabble.com/flexjs-donation-the-sorton-code-tp52565p52570.html Sent from the

Re: flexjs donation the sorton code

2016-04-25 Thread Harbs
Right. I just looked at past threads and it’s not implemented yet. Do you think you can get it working using code similar to what you have there and make a pull request on the main repo? You can look at what I’ve done with XML as a pointer. One issue which I’m not really sure how to handle here

Re: flexjs donation the sorton code

2016-04-25 Thread lizhi
i just code the array.sorton. and it is not work flexjs 0.7 -- View this message in context: http://apache-flex-development.247.n4.nabble.com/flexjs-donation-the-sorton-code-tp52565p52567.html Sent from the Apache Flex Development mailing list archive at Nabble.com.

[FalconJX] compiling non-browser javascript

2016-04-25 Thread Harbs
I would really like to use FalconJX for ExtendScript development. ExtendScript is Adobe’s flavor of Javascript used in their creative apps. They have an old version of SpiderMonkey as the underlying engine (which still had E4X support). I have some really complex scripts and currently the single

Re: flexjs donation the sorton code

2016-04-25 Thread Harbs
Hi Lizhi, I’m have not run your code and I’m not sure what it’s doing. Does sortOn() currently work? On Apr 25, 2016, at 7:20 AM, lizhi wrote: > https://github.com/matrix3d/spriteflexjs/blob/master/test/src/TestSortOn.as > > > > -- > View this message in context: > http://apache-flex-deve