• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Performance of Frameworks - regarding

 
Ranch Hand
Posts: 150
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is a question on frameworks - not sure if this is the correct forum though.

All the frameworks use some sort of introspection to obtain the required class at runtime, be it Spring, Velocity or others. Isnt introspection a costly process in itself using Reflection internally? From a point of view of performance won't it be better to write code ourselves instead - agreed that this would consume time - but can't we ensure better performance this way?
 
Ranch Hand
Posts: 1209
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by PNS Subramanian:
This is a question on frameworks - not sure if this is the correct forum though.

All the frameworks use some sort of introspection to obtain the required class at runtime, be it Spring, Velocity or others. Isnt introspection a costly process in itself using Reflection internally? From a point of view of performance won't it be better to write code ourselves instead - agreed that this would consume time - but can't we ensure better performance this way?



Spring, uhhm , the wiring i guess happens during start up. So that s'd be fine. They heavily use dynamic proxies though to provide middleware services (ie if yuo employ them which, i guess anybody who uses spring ,would)
But they also mention that time taken for method invocation through dyna proxies is likely to be a very small percentage of the overall time to execute business logic (db writes, reads etc).So that s'd be ok again and frankly writing something like Spring and improve upon it would be a huge effort .

In , velocity i guess you store the objects you want to access in a template, in the velocity context, which looks like a map?
This is what i remeber abt velocity.

In most projects i worked on, other than those that employ entity beans
DB is usually the place where you would spend time tuning because that is where you usually get maximum benefit.You migh cache certain stuff based on the business logic /rules.
 
Create symphonies in seed and soil. For this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic