You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@synapse.apache.org by Supun Kamburugamuva <su...@gmail.com> on 2011/04/19 11:49:07 UTC
Creating an instance of the Task
At the moment we create a new instance of the Task class for each and every
task execution. I think this is an un-necessary overhead. We can create the
class only once and use it through out the executions. WDYT?
Thanks,
--
Supun Kamburugamuva
Technical Lead & Product Manager, WSO2 Inc.; http://wso2.com
Member, Apache Software Foundation; http://www.apache.org
WSO2 Inc.; http://wso2.org
E-mail: supun@wso2.com; Mobile: +94 77 431 3585
Blog: http://supunk.blogspot.com
Re: Creating an instance of the Task
Posted by Supun Kamburugamuva <su...@gmail.com>.
Now this change is in the trunk. A task class is instantiated only once.
Thanks,
Supun..
On Wed, Apr 20, 2011 at 6:49 PM, Supun Kamburugamuva <su...@gmail.com>wrote:
> I've done this change. I'll commit it soon.
>
> Thanks,
> Supun..
>
>
> On Wed, Apr 20, 2011 at 5:13 PM, Supun Kamburugamuva <su...@gmail.com>wrote:
>
>> It seems it is bit hard to implement this. I'll have another look.
>>
>> Thanks,
>> Supun..
>>
>>
>> On Tue, Apr 19, 2011 at 11:45 PM, indika kumara <in...@gmail.com>wrote:
>>
>>> + 1
>>>
>>> ~ Indika
>>>
>>> On Tue, Apr 19, 2011 at 3:49 PM, Supun Kamburugamuva <su...@gmail.com>wrote:
>>>
>>>> At the moment we create a new instance of the Task class for each and
>>>> every task execution. I think this is an un-necessary overhead. We can
>>>> create the class only once and use it through out the executions. WDYT?
>>>>
>>>> Thanks,
>>>> --
>>>> Supun Kamburugamuva
>>>> Technical Lead & Product Manager, WSO2 Inc.; http://wso2.com
>>>> Member, Apache Software Foundation; http://www.apache.org
>>>> WSO2 Inc.; http://wso2.org
>>>> E-mail: supun@wso2.com; Mobile: +94 77 431 3585
>>>> Blog: http://supunk.blogspot.com
>>>>
>>>>
>>>>
>>>>
>>>
>>
>>
>> --
>> Supun Kamburugamuva
>> Technical Lead & Product Manager, WSO2 Inc.; http://wso2.com
>> Member, Apache Software Foundation; http://www.apache.org
>> WSO2 Inc.; http://wso2.org
>> E-mail: supun@wso2.com; Mobile: +94 77 431 3585
>> Blog: http://supunk.blogspot.com
>>
>>
>>
>>
>
>
> --
> Supun Kamburugamuva
> Technical Lead & Product Manager, WSO2 Inc.; http://wso2.com
> Member, Apache Software Foundation; http://www.apache.org
> WSO2 Inc.; http://wso2.org
> E-mail: supun@wso2.com; Mobile: +94 77 431 3585
> Blog: http://supunk.blogspot.com
>
>
>
>
--
Supun Kamburugamuva
Technical Lead & Product Manager, WSO2 Inc.; http://wso2.com
Member, Apache Software Foundation; http://www.apache.org
WSO2 Inc.; http://wso2.org
E-mail: supun@wso2.com; Mobile: +94 77 431 3585
Blog: http://supunk.blogspot.com
Re: Creating an instance of the Task
Posted by Supun Kamburugamuva <su...@gmail.com>.
I've done this change. I'll commit it soon.
Thanks,
Supun..
On Wed, Apr 20, 2011 at 5:13 PM, Supun Kamburugamuva <su...@gmail.com>wrote:
> It seems it is bit hard to implement this. I'll have another look.
>
> Thanks,
> Supun..
>
>
> On Tue, Apr 19, 2011 at 11:45 PM, indika kumara <in...@gmail.com>wrote:
>
>> + 1
>>
>> ~ Indika
>>
>> On Tue, Apr 19, 2011 at 3:49 PM, Supun Kamburugamuva <su...@gmail.com>wrote:
>>
>>> At the moment we create a new instance of the Task class for each and
>>> every task execution. I think this is an un-necessary overhead. We can
>>> create the class only once and use it through out the executions. WDYT?
>>>
>>> Thanks,
>>> --
>>> Supun Kamburugamuva
>>> Technical Lead & Product Manager, WSO2 Inc.; http://wso2.com
>>> Member, Apache Software Foundation; http://www.apache.org
>>> WSO2 Inc.; http://wso2.org
>>> E-mail: supun@wso2.com; Mobile: +94 77 431 3585
>>> Blog: http://supunk.blogspot.com
>>>
>>>
>>>
>>>
>>
>
>
> --
> Supun Kamburugamuva
> Technical Lead & Product Manager, WSO2 Inc.; http://wso2.com
> Member, Apache Software Foundation; http://www.apache.org
> WSO2 Inc.; http://wso2.org
> E-mail: supun@wso2.com; Mobile: +94 77 431 3585
> Blog: http://supunk.blogspot.com
>
>
>
>
--
Supun Kamburugamuva
Technical Lead & Product Manager, WSO2 Inc.; http://wso2.com
Member, Apache Software Foundation; http://www.apache.org
WSO2 Inc.; http://wso2.org
E-mail: supun@wso2.com; Mobile: +94 77 431 3585
Blog: http://supunk.blogspot.com
Re: Creating an instance of the Task
Posted by Supun Kamburugamuva <su...@gmail.com>.
It seems it is bit hard to implement this. I'll have another look.
Thanks,
Supun..
On Tue, Apr 19, 2011 at 11:45 PM, indika kumara <in...@gmail.com>wrote:
> + 1
>
> ~ Indika
>
> On Tue, Apr 19, 2011 at 3:49 PM, Supun Kamburugamuva <su...@gmail.com>wrote:
>
>> At the moment we create a new instance of the Task class for each and
>> every task execution. I think this is an un-necessary overhead. We can
>> create the class only once and use it through out the executions. WDYT?
>>
>> Thanks,
>> --
>> Supun Kamburugamuva
>> Technical Lead & Product Manager, WSO2 Inc.; http://wso2.com
>> Member, Apache Software Foundation; http://www.apache.org
>> WSO2 Inc.; http://wso2.org
>> E-mail: supun@wso2.com; Mobile: +94 77 431 3585
>> Blog: http://supunk.blogspot.com
>>
>>
>>
>>
>
--
Supun Kamburugamuva
Technical Lead & Product Manager, WSO2 Inc.; http://wso2.com
Member, Apache Software Foundation; http://www.apache.org
WSO2 Inc.; http://wso2.org
E-mail: supun@wso2.com; Mobile: +94 77 431 3585
Blog: http://supunk.blogspot.com
Re: Creating an instance of the Task
Posted by indika kumara <in...@gmail.com>.
+ 1
~ Indika
On Tue, Apr 19, 2011 at 3:49 PM, Supun Kamburugamuva <su...@gmail.com>wrote:
> At the moment we create a new instance of the Task class for each and every
> task execution. I think this is an un-necessary overhead. We can create the
> class only once and use it through out the executions. WDYT?
>
> Thanks,
> --
> Supun Kamburugamuva
> Technical Lead & Product Manager, WSO2 Inc.; http://wso2.com
> Member, Apache Software Foundation; http://www.apache.org
> WSO2 Inc.; http://wso2.org
> E-mail: supun@wso2.com; Mobile: +94 77 431 3585
> Blog: http://supunk.blogspot.com
>
>
>
>