Skip to content

blueprint can know cached clip num#43

Merged
wangpingsx merged 2 commits into
mainfrom
tts_cache_show_cached_clip_num
Nov 8, 2022
Merged

blueprint can know cached clip num#43
wangpingsx merged 2 commits into
mainfrom
tts_cache_show_cached_clip_num

Conversation

@wangpingsx
Copy link
Copy Markdown
Contributor

No description provided.

*
* @return number of clips in cache
*/
int32 UTtsMemoryCache::GetCacheClipNum() const
Copy link
Copy Markdown
Contributor

@phil-mm phil-mm Nov 8, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine. But perhaps we can name it similar to GetUsedCacheSizeInKilobytes() for consistency? So something like GetUsedCacheClipCapacity() or maybe just should be GetUsedClipCapacity() and GetUsedMemoryCapacityInKilobytes()

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great names! I spend 20 minutes to find a better name, but didn't work it out. I like your names.
I will use GetUsedCacheClipCapacity()
Thanks

@wangpingsx wangpingsx requested a review from phil-mm November 8, 2022 12:00
@wangpingsx wangpingsx merged commit 4c5267c into main Nov 8, 2022
@wangpingsx wangpingsx deleted the tts_cache_show_cached_clip_num branch November 8, 2022 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants