# Template Registry - File Size Increases w/ Use

**URL:** <https://clarionhub.com/t/template-registry-file-size-increases-w-use/6318>\
**Category:** questions\
**Tags:** templates\
**Created:** [June 15, 2023, 1:56pm UTC](https://clarionhub.com/t/template-registry-file-size-increases-w-use/6318 "2023-06-15T13:56:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![totalhip](https://clarionhub.com/user_avatar/clarionhub.com/totalhip/32/1477_2.png) [@totalhip](https://clarionhub.com/u/totalhip)\
**Post date:** [June 15, 2023, 1:56pm UTC](https://clarionhub.com/t/template-registry-file-size-increases-w-use/6318/1 "2023-06-15T13:56:34Z")

</div>

Just finished re-registering all templates that I use. Over the past several years, I have noted that the TRF file grows in size with each use and I eventually begin to see more crashes of the IDE. For today, the file size went from 175K to 9.9K even though the exact same templates were registered. In the past, I have seen the file size as large as 484K. Anyone else take note of this situation or have an explanation?

---

<div class="post-metadata">

**Author:** ![vitesse](https://clarionhub.com/user_avatar/clarionhub.com/vitesse/32/837_2.png) [@vitesse](https://clarionhub.com/u/vitesse)\
**Post date:** [June 16, 2023, 3:39am UTC](https://clarionhub.com/t/template-registry-file-size-increases-w-use/6318/2 "2023-06-16T03:39:54Z")

</div>

Hi Doug

this has always been the case - it seems new space is allocated but old space is not re-used. It is worth renaming the trf file as a backup and starting over re-registering your templates once in a while.

cheers

Geoff R

PS. Seems you mentioned this before: [How fast does your trf grow?](https://clarionhub.com/t/how-fast-does-your-trf-grow/3498)

---

<div class="post-metadata">

**Author:** ![totalhip](https://clarionhub.com/user_avatar/clarionhub.com/totalhip/32/1477_2.png) [@totalhip](https://clarionhub.com/u/totalhip)\
**Post date:** [June 16, 2023, 10:24am UTC](https://clarionhub.com/t/template-registry-file-size-increases-w-use/6318/3 "2023-06-16T10:24:32Z")

</div>

Yes, mentioned before, but curious if others notice the same. I believe you are the first to acknowledge it too.

---

<div class="post-metadata">

**Author:** ![anon77170705](https://clarionhub.com/letter_avatar_proxy/v4/letter/a/ecccb3/32.png) [@anon77170705](https://clarionhub.com/u/anon77170705)\
**Post date:** [June 16, 2023, 11:29am UTC](https://clarionhub.com/t/template-registry-file-size-increases-w-use/6318/4 "2023-06-16T11:29:42Z")

</div>

The TRF file is a database built on parsing templates. When the AppGen loads TRF, it rolls that database out in the memory. If there is a changed template file, it is re-parsing instead of loading its parsed information from TRF, and the in-memory database is marking as modified. When in-memory database is not required anymore, and it’s not marked as modified, the AppGen just discards it. If it is modified, the in-memory database is writing to a new TRF file, the old TRF is removing. I do not see reasons why TRF can change its size unless some templates have been modified. I can’t say that I use the AppGen frequently, but nevertheless… My working TRF file has the timestamp January 5th, 2017. I not registered new templates since that time and not copied modified TPL/TPW to working set.

Try following steps:

- Copy all TPL and TPW files to some directory
- Use the AppGen and close the IDE
- Binary compare TPL and TPW files in working set and copied before running IDE.
- I guess, some changes must exist.
