4 ms·
The thing about xpath is that it runs in highly efficient native code. When iterating over a 100MB+ file it makes an _immense_ difference. It's conceptually th
by TylerE 13y ago
The thing about xpath is that it runs in highly efficient native code. When iterating over a 100MB+ file it makes an _immense_ difference.
It's conceptually the difference between:
count = 0
for row in db.query("select id from <table>"):
count += 1
and
db.query("select count(*) from <table>")
I also don't find it at all confusing, you just have to understand the tree nature of XML.
- d0m 13y agoOh no, you've used the performance argument against me ;-) Obviously, when performance issues are on the line, you often need to trade simplicity and maintainability.
- TylerE 13y agoI'm not sure how using a platform specific library is more maintainable than an open standard with myriad implementations.