Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2026-10-22
17:19 • Ticket [fc227507ea] Taking more CPU time after enabling thread in TCL status... artifact: e0e826a86a user: serhiy.storchaka
2026-10-15
11:29 • Closed ticket [fc227507ea]. artifact: 040213b75b user: serhiy.storchaka
2021-07-29
07:22 • Pending ticket [fc227507ea]. artifact: 2bbd30a646 user: jan.nijtmans
2021-07-27
05:23 • Ticket [fc227507ea]: 3 changes artifact: 0e22d1be1c user: arvind29
2021-07-26
07:39 • Ticket [fc227507ea]: 3 changes artifact: 10083de0d5 user: arvind29
07:34 • New ticket [fc227507ea]. artifact: 6000eacbea user: arvind29

Taking more CPU time after enabling thread in TCL

Closed / Wont Fixfc227507ead7545c454bd7e614b4dc38443eecafCreated 5 years agoUpdated 42 days ago
Descriptionplain2021-07-26 07:34:34
I was compiling TCL8.6.8 with -enable_thread=off in my application. But now I have enabled threading. I have seen few test cases that are taking more memory and more CPU time. Therefore I have removed "#define USE_THREAD_ALLOC 1" from the configure file and now there is no memory degradation but still it is taking much CPU time. How can I reduce the CPU usage time? Please help.

Thanks,
Arvind
arvind29 Ticket [fc227507ea]: 3 changes [History diff]2021-07-26 07:39:12
arvind29 Ticket [fc227507ea]: 3 changes [History diff]2021-07-27 05:23:06
jan.nijtmanswiki2021-07-29 07:22:06

Well, it's normal that a thread-enabled build uses more memory and more (waiting) time than non-threaded builds. Nothing comes for free. Your description doesn't contain enough information to decided if something special is going on. What platform? What OS version? What test-cases?

See: https://www.softwaretestinghelp.com/how-to-write-good-bug-report/

serhiy.storchakawiki2026-10-15 11:29:05

Closing: decided above.

serhiy.storchaka Ticket [fc227507ea]: 3 changes [History diff]2026-10-22 17:19:26
Log in (anonymous is fine) to add a comment.