<p>Calling List::Util::first here keeps showing up as a hotspot on our NYTProf output, so just use a regex instead.</p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>&nbsp;&nbsp;<a href='https://github.com/dbsrgits/sql-abstract/pull/21'>https://github.com/dbsrgits/sql-abstract/pull/21</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>Speed up check for illegal top-level op</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/dbsrgits/sql-abstract/pull/21/files#diff-ec7e26da6911a44b059c4cbcaba4718cf763f401b76860ab7d6656f39badb2c5">lib/SQL/Abstract.pm</a>
    (17)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/dbsrgits/sql-abstract/pull/21.patch'>https://github.com/dbsrgits/sql-abstract/pull/21.patch</a></li>
  <li><a href='https://github.com/dbsrgits/sql-abstract/pull/21.diff'>https://github.com/dbsrgits/sql-abstract/pull/21.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/dbsrgits/sql-abstract/pull/21">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AACJ4AUANVFI5DCK4IILQSLTOKOLDANCNFSM45C6DFSQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AACJ4AUFP24747Q2XT6E3QDTOKOLDA5CNFSM45C6DFS2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4NKSS2JA.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/dbsrgits/sql-abstract/pull/21",
"url": "https://github.com/dbsrgits/sql-abstract/pull/21",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>