Optimize cljs.core/re-matches

Description

Since (.exec re s) is known to return array, we can add ^array type hint in (count matches) so compiler will emit more optimal matches.length. Also instead of (first matches) we can safely do (aget matches 0).

Environment

None

Status

Assignee

Mike Fikes

Reporter

Roman Liutikov

Labels

None

Approval

None

Patch

Code and Test

Priority

Major
Configure