DO NOT REPLY [Bug 30980] - Separating Static and Dynamic content in Jasper generated Java class to avoid compilation

2004-09-01 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=30980.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=30980

Separating Static and Dynamic content in Jasper generated Java class to avoid 
compilation

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||WONTFIX



--- Additional Comments From [EMAIL PROTECTED]  2004-09-01 08:15 ---
- Querying a resource bundle is not free
- Diffing to know that only static text changed is complex (and then we need to
update whatever is relevant)
So -1 from me for this feature, it's not doable or practical.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 30980] - Separating Static and Dynamic content in Jasper generated Java class to avoid compilation

2004-09-01 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=30980.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=30980

Separating Static and Dynamic content in Jasper generated Java class to avoid 
compilation

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|RESOLVED|REOPENED
 Resolution|WONTFIX |



--- Additional Comments From [EMAIL PROTECTED]  2004-09-01 12:38 ---
Querying will be o(1). when good hash table is used.
Maintaining static,dynamic content can be done in simpler algorithms

An intermediate file which stores demarcations of static and dynamic content can
deduct changes to static and dynamic content in o(n).

(It checks char by char every static content and dynamic content, When static
content change is deducted it adjusts its demarcations)

If there is a change to dynamic content, then normal procedure is followed.
Otherwise the resouce file is updated.

Intermediate file is updated whenever file changes.

There will be huge reduction in overall compilation time when only static
content changes.

I can develop a prototype, if you want proof of practical feasibility.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 30980] - Separating Static and Dynamic content in Jasper generated Java class to avoid compilation

2004-09-01 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=30980.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=30980

Separating Static and Dynamic content in Jasper generated Java class to avoid 
compilation

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|REOPENED|RESOLVED
 Resolution||WONTFIX



--- Additional Comments From [EMAIL PROTECTED]  2004-09-01 12:43 ---
-1 means no, not pehaps. If you want me to consider your feature, you'll have to
provide a fully working implementation (not a proof of concept prototype), with
no overhead over the current generated source.
Please do not reopen this.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 30980] - Separating Static and Dynamic content in Jasper generated Java class to avoid compilation

2004-09-01 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=30980.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=30980

Separating Static and Dynamic content in Jasper generated Java class to avoid 
compilation





--- Additional Comments From [EMAIL PROTECTED]  2004-09-02 05:28 ---
jspc is not invoked in deployment mode.
Hence this feature will add overhead in normal jsp access from class files.

But,In development mode, jspc is invoked for every change in static html.
There are additional requirements
-Intermediate file
-Properties file
per JSP file, it may be possible to combine them.

A switch like jspc -static_split may follow this procedure.

When there are frequent changes to jsp file, this process will reduce response time.

When jsp files are accessed frequently without changes this will increase
response time.

+Avoids jspc
+Avoids javac

-Requires 1 or 2 files per jsp
-class files do not have embedded strings, hence there is a runtime performance hit.

But the algorithms of diffing,querying do not put any oiverhead.

Will it be worthwile to develop a module for -static_split? I belive this will
aid developers, as it removes compilations.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]