 |
 |
 |
 |
|
 |
 |
|
 |
 |
|
 |
 |
| Author |
Message |
Marilla
Joined: 02 Feb 2006 Posts: 329
|
Posted: Tue Dec 05, 2006 5:10 am Post subject: |
|
|
| Xadhoom wrote: | Maybe if you compile 20 scripts isn't a big time, if you have to recompile more then one thousand it is
As already Silver said, it would be more useful to add a line in the .dep files than having a warning, althought if you can see warnings in the ecompile you can go editing the script (removing the unused include) ad you'll never see it again, easy, no?
Having unused include files DOES NOT causes inefficiencies during execution of POL, but it can take lot of time when compiling scripts |
But what I don't think you are understanding is, what is being asked for here is to add time to the eCompile process to 'fix' something that you should have fixed already. It's sort of like asking eCompile to check for any endless loops in your code, or any of a thousand other coding mistakes. I would -much- prefer eCompile just took me at my word when I write a script, and do what I ask it to do... and not be spending time double-checking my work. You are asking eCompile to take longer for ME, because you can't organize your includes properly... when there are plenty of other ways to do what you are asking for (like simply commenting-out includes if you suspect they aren't used, and try recompiling to see).
As it is, on my shard, due to the extent that the Housing and Town Stone systems are involved in things (there is very little that does not check something in one or the other of those systems), I very often have compiles that do hundreds of scripts at a time. So, it takes a couple minutes. Big deal. However, in my case, because I've organized all of my includes properly from the start (ok; not 'from the start', because the include mess in WoD/Ackadia was horrid), I know very well that ALL of those scripts really do need to be recompiled, because I know that only includes that are necessary are in each script. |
|
 |
|
|
 |
 |
|
 |
 |
|
 |
 |
|
 |
 |
|
 |
 |
|
 |
 |
|
 |
 |
| Author |
Message |
Marilla
Joined: 02 Feb 2006 Posts: 329
|
Posted: Tue Dec 05, 2006 12:28 pm Post subject: |
|
|
| Developer Silver wrote: | Try to put an useless include in a .src file: the generated .dep file will list that file anyway.
This means: ecompile already looks for every included file, so it could be easy and fast to track which .inc are really used (while it parses .src file) and which ones are not. |
This is quite the non sequitur. Of course eCompile looks for every included file. It would be fairly useless if it did not. Actually, this fact shows exactly what you are missing: eCompile lists the file anyway because it doesn't know (or care) if you've used anything in it, or not, because by design, it simply ignores code that you never call.
| Developer Silver wrote: | | We're asking a feature to improve our compiling optimization |
You are asking for a feature to do your job as scripter for you... you are asking for the compiler to do more work than it needs to, because you don't want to do the work yourself. In the time you've taken posting about this, you could have fixed the problem. Also, the time you've spent posting about this is probably more than the extra time it takes your eCompile to run due to an extra include here or there, unless you have a REALLY slow system, or basically have all includes included in every single source file.
| Developer Silver wrote: | | If a dev will tell that this could slow down ecompile performance, never mind. |
I figure the devs will do or not do the feature based on whatever criteria they have. One criteria might be: Is it worth taking time to develop this feature, when it's something that the scripter could and should themselves do? |
|
 |
|
|
 |
 |
| Author |
Message |
Marilla
Joined: 02 Feb 2006 Posts: 329
|
Posted: Tue Dec 05, 2006 12:30 pm Post subject: |
|
|
| Developer Silver wrote: | Try to put an useless include in a .src file: the generated .dep file will list that file anyway.
This means: ecompile already looks for every included file, so it could be easy and fast to track which .inc are really used (while it parses .src file) and which ones are not. |
This is quite the non sequitur. Of course eCompile looks for every included file. It would be fairly useless if it did not. Actually, this fact shows exactly what you are missing: eCompile lists the file anyway because it doesn't know (or care) if you've used anything in it, or not, because by design, it simply ignores code that you never call.
| Developer Silver wrote: | | We're asking a feature to improve our compiling optimization |
You are asking for a feature to do your job as scripter for you... you are asking for the compiler to do more work than it needs to, because you don't want to do the work yourself. In the time you've taken posting about this, you could have fixed the problem. Also, the time you've spent posting about this is probably more than the extra time it takes your eCompile to run due to an extra include here or there, unless you have a REALLY slow system, or basically have all includes included in every single source file.
| Developer Silver wrote: | | If a dev will tell that this could slow down ecompile performance, never mind. |
I figure the devs will do or not do the feature based on whatever criteria they have. One criteria might be: Is it worth taking time to develop this feature, when it's something that the scripter could and should themselves do? |
|
 |
|
|
 |
 |
| Author |
Message |
Marilla
Joined: 02 Feb 2006 Posts: 329
|
Posted: Tue Dec 05, 2006 12:32 pm Post subject: |
|
|
| Developer Silver wrote: | Try to put an useless include in a .src file: the generated .dep file will list that file anyway.
This means: ecompile already looks for every included file, so it could be easy and fast to track which .inc are really used (while it parses .src file) and which ones are not. |
This is quite the non sequitur. Of course eCompile looks for every included file. It would be fairly useless if it did not. Actually this fact shows what I think you are missing: eCompile lists the file anyway because it doesn't know (or care) if you've used anything in it or not, because by design it simply ignores code that you never call.
| Developer Silver wrote: | | We're asking a feature to improve our compiling optimization |
You are asking for a feature to do your job as scripter for you... you are asking for the compiler to do more work than it needs to, because you don't want to do the work yourself. In the time you've taken posting about this, you could have fixed the problem. Also, the time you've spent posting about this is probably more than the extra time it takes your eCompile to run due to an extra include here or there, unless you have a REALLY slow system, or basically have all includes included in every single source file.
| Developer Silver wrote: | | If a dev will tell that this could slow down ecompile performance, never mind. |
I figure the devs will do or not do the feature based on whatever criteria they have. One criterion might be: Is it worth taking time to develop this feature, when it's something that the scripter could and should themselves do?
Last edited by Marilla on Tue Dec 05, 2006 5:36 pm; edited 1 time in total |
|
 |
|
|
 |
 |
|