Skip to content

Conversation

@Kyungtae-TEI
Copy link
Contributor

요약 및 작업내용

@Kyungtae-TEI Kyungtae-TEI requested review from DavinAhn and YSYoon March 26, 2025 05:25
@Kyungtae-TEI Kyungtae-TEI self-assigned this Mar 26, 2025
valid = false;
break;
if (el && el.nodeType === Node.ELEMENT_NODE) {
if (el._cachedEmptyState !== undefined) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

이전에는 isInvalid()가 여러번 계산될 수 있었고 지금은 생성 시점에 한번만 계산하게 했기 때문에 _cachedEmptyState는 필요 없지 않나요?

parentElement가 여러 TTSPiece에 속할 경우를 가정한 걸까요?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

parentElement가 여러 TTSPiece에 속할 경우를 가정한 걸까요?

앗 아니요...

캐싱하던거 지난 커밋걸 가져와 그대로 사용하다보니 그랬는데 생각해보니 _cachedEmptyState는 필요없을 것 같아요.

Copy link
Collaborator

Choose a reason for hiding this comment

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

구두로 이야기한것)

DV: 근데.. Elemet 안에 여러 Piece(Node)가 있으면 그 만큼 isInvalid가 불리는거고 호출 횟수를 줄이려했던 개선에서 벗어나는거라 문제가 발생할 수 있지 않을까요?
KT: 하지만 잘 됩니다 (?)
DV: 오?
KT: 문제 생기면 그 다음 단계로 가는 걸로!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ㅋㅋㅋㅋㅋㅋ TEXT_NODE로 잘못 들어간 것 수정했어요. 수정한 후에도 잘 됩니다!

@Kyungtae-TEI Kyungtae-TEI merged commit 1bfced5 into master Mar 26, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants