You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "werpu (via GitHub)" <gi...@apache.org> on 2023/03/09 13:14:17 UTC
[GitHub] [myfaces] werpu opened a new pull request, #547: https://issues.apache.org/jira/browse/MYFACES-4584: Improvements in the Ajax Codebase
werpu opened a new pull request, #547:
URL: https://github.com/apache/myfaces/pull/547
- Streams are now entirely eliminated in favor of JS Arrays (very likely faster because native arrays are handled by the browser)
- Added a non intrusive Array shim for flatMap (some browsers in our baseline do not support it)
- Reduced internal Config data structure to raw associative arrays gone are now the configs and subconfigs (easier debugging probably faster also)
- Simplified the XHRQueue code it is now 50% smaller and down to the core
- Cleaned upt he XhrRequest
- Moved the AsyncRunnable into an abstract base class
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@myfaces.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [myfaces] werpu commented on pull request #547: https://issues.apache.org/jira/browse/MYFACES-4584: Improvements in the Ajax Codebase
Posted by "werpu (via GitHub)" <gi...@apache.org>.
werpu commented on PR #547:
URL: https://github.com/apache/myfaces/pull/547#issuecomment-1462048950
Unit Tests pass
My Integration tests pass
The TCK Tests I ran against it pass (which is the ajax suite and a few other ajax related modules)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@myfaces.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [myfaces] werpu merged pull request #547: https://issues.apache.org/jira/browse/MYFACES-4584: Improvements in the Ajax Codebase
Posted by "werpu (via GitHub)" <gi...@apache.org>.
werpu merged PR #547:
URL: https://github.com/apache/myfaces/pull/547
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@myfaces.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [myfaces] melloware commented on pull request #547: https://issues.apache.org/jira/browse/MYFACES-4584: Improvements in the Ajax Codebase
Posted by "melloware (via GitHub)" <gi...@apache.org>.
melloware commented on PR #547:
URL: https://github.com/apache/myfaces/pull/547#issuecomment-1462103911
Nice work @werpu !
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@myfaces.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [myfaces] werpu commented on pull request #547: https://issues.apache.org/jira/browse/MYFACES-4584: Improvements in the Ajax Codebase
Posted by "werpu (via GitHub)" <gi...@apache.org>.
werpu commented on PR #547:
URL: https://github.com/apache/myfaces/pull/547#issuecomment-1462504202
I will leave it open for review until tomorrow, will merge sometime tomorrow!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@myfaces.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [myfaces] werpu commented on pull request #547: https://issues.apache.org/jira/browse/MYFACES-4584: Improvements in the Ajax Codebase
Posted by "werpu (via GitHub)" <gi...@apache.org>.
werpu commented on PR #547:
URL: https://github.com/apache/myfaces/pull/547#issuecomment-1463343106
Merged!
Another "improvement" still possible is the elimination of configs, but given the latest changes in the internal config data stuctures, there is little to gain from it no code reduction, no complexity reduction and no speed gain, only a tad closer to the language itself, atm.
So not worth the effort for now! In reality the configs just would be replaced by direct assoc arrays and function calls on top of them but the code basically stays the same mostly.
So I guess this would not really reduce complexity (config.assign(key1,key2,key3).value = "foobaz" would become assign(assocArray, key1,key2,key3).value = "foobaz").
For debugging purposes - configs now use a pure associative arrays with data only anyway as internal data structures, shifting a little bit away from the pure recursive functional approach used before)
Either way should this change be wanted in the long run, the foundations for this are there (and used internally by the Config)
A shift to pure assoc arrays probably will make sense as soon as typescript allows constructs like
assocArray ?.key1?.key2?.key3 = "value"
atm this is a read only operation which forced me to introduce Configs in the code first place!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@myfaces.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org