From: Nick on
karthikbalaguru <karthikbalaguru79(a)gmail.com> writes:

> On Jan 26, 3:51 pm, Josef Moellers <josef.moell...(a)ts.fujitsu.com>
> wrote:
>> karthikbalaguru wrote:
>> > My query is 'A tool that suggests
>> > optimized logic for a piece of
>> > code/module/function' . I am
>>
>> Define "optimized"!
>>
>> Optimized for speed, optimized for memory requirement, optimized to
>> handle extreme situations, optimized to handle easy situations?
>>
>
> Exactly !
> The tool should support
> for memory based optimization

Optimised for line width, apparently.
--
Online waterways route planner | http://canalplan.eu
Plan trips, see photos, check facilities | http://canalplan.org.uk
From: David Brown on
karthikbalaguru wrote:
> On Jan 26, 3:51 pm, Josef Moellers <josef.moell...(a)ts.fujitsu.com>
> wrote:
>> karthikbalaguru wrote:
>>> My query is 'A tool that suggests
>>> optimized logic for a piece of
>>> code/module/function' . I am
>> Define "optimized"!
>>
>> Optimized for speed, optimized for memory requirement, optimized to
>> handle extreme situations, optimized to handle easy situations?
>>
>
> Exactly !
> The tool should support
> for memory based optimization
> that greatly helps in memory/
> cost constraint systems,
> speed based optimization that
> greatly decides the performance
> in certain projects, perfect
> algorithm/logic required for a
> particular scenario, and other
> optimization techniques applicable.
> It should probably have an option
> that could decide the type of
> optimization required for the user
> for the particular module. May
> be there can be an option called
> 'general optimization' that would
> apply all optimization techniques
> to a certain level only in a
> balanced manner.
>
> If the user is particular about
> certain particular optimization,
> Once the type of optimization
> is got as input from the user,
> even the level of optimization can
> be got from the user by having
> some flags/options for defining
> different levels of optimization .
>
> It could also tell the bottlenecks
> in the code and that would greatly
> help in optimizing the right piece
> of code. Maybe a profiler should
> also be part of it. The tool can
> also display graphs that could
> give comparitive analysis of
> speed improvement vs memory
> usage vs various levels of various
> kinds of optimization techniques.
>
> It can also suggest the best
> possible number of threads
> required, message queues
> required for a particular
> logic and define that logic.
> It can remove off redundant
> threads, interrupts or timers
> etc and add if required for
> an efficient logic that it
> could suggest to the user.
>
> Maybe, it can also suggest
> various processors and the
> relative performance w.r.t
> memory, speed and cost
> for those .
> It could also suggest if
> we need to go in for a
> multicore and if so , it
> can suggest the number
> of cores and the kind of
> processor !
>
> Karthik Balaguru

Perhaps the tool should be able to read the users' mind too, so that it
can optimise the type of optimisation? Maybe also predict the future so
that it can optimise appropriately for the actual use of the code?

Have you actually bothered to read /anything/ that has been posted in
this thread? We've used your wishful thinking as inspiration for some
interesting discussions, but no one considers your mythical tool to be
at all realistic. And your response is "for my next wish, I'd like
three more wishes".