This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
3316
Archived fixes / Re : Optimizing parse_bbc() and Aeva
« on May 27th, 2012, 09:27 PM »
Because on bigger boards it's still a large part of processing effort, even if it's better than it was.
3317
The Pub / Re: The Cookie Law (in the UK at least)
« on May 27th, 2012, 09:13 PM »
Yup, even though it's only tracking what a user is doing 'right now', it's still got a privacy concern attached.
But just for fun, and in defence of the thing I keep arguing in favour of, the number of guests now becomes hilariously inaccurate now, as feline indicated 70% or so of guests don't agree to the ECL thing, in which case the number of guests reported is probably only 30% of the number of actual guests... so why bother keeping it?
But just for fun, and in defence of the thing I keep arguing in favour of, the number of guests now becomes hilariously inaccurate now, as feline indicated 70% or so of guests don't agree to the ECL thing, in which case the number of guests reported is probably only 30% of the number of actual guests... so why bother keeping it?
3318
Other software / Re: PHP 5.4 bug, mods/plugins with hooks
« on May 27th, 2012, 09:12 PM »
I could make some kind of snide comment about the relative competence of modders here, but I won't.
3319
Archived fixes / Re : Optimizing parse_bbc() and Aeva
« on May 27th, 2012, 03:41 PM »
I don't think that'll make much difference, really. It's all pure CPU (excluding Aeva and media processing) so all you'll be doing is establishing the relative performance of each server.
3320
Features / Re: Rewriting the skin file parser...
« on May 27th, 2012, 03:41 PM »
The commas instead of dots confuse me. I'd argue that ie7,replace,ie6 is a combination that isn't really necessary... what purpose would it (practically) solve?
3321
Archived fixes / Re : Optimizing parse_bbc() and Aeva
« on May 27th, 2012, 03:19 PM »
I don't believe anyone's really done external tests.
3322
Features / Re: Thought system
« on May 27th, 2012, 03:18 PM »
I realised they were very different things but to me that could have a common root, namely related to who can see what.
FWIW, I'm not interested in a wall, but a notifications system would be *very* useful. I would prefer to see a wall as a plugin.
FWIW, I'm not interested in a wall, but a notifications system would be *very* useful. I would prefer to see a wall as a plugin.
3323
Other software / PHP 5.4 bug, mods/plugins with hooks
« on May 27th, 2012, 03:17 PM »
So, I've been watching this for a while, ever since I heard that PHP 5.4 would deprecate call-time pass-by-reference, knowing full well that both SMF and Wedge's hook caller uses this.
I was not surprised to discover there were issues, nor was I surprised to note what the issues were, and now that I think about it, I was not surprised to note that my observation was entirely correct.
OK, here's the deal. When a hook is called, normally all the variables are shoved through call_user_func_array by reference. As of PHP 5.4, that won't work as expected.
Specifically, it won't work if the receiving function's signature doesn't state it's expecting things as references. Which meant that most of the mods written using hooks actually didn't work properly under PHP 5.4, though oddly enough this was never an issue for mine, because I always indicated everything should be by-reference anyway in the signatures, I found it a good practice to get into.
What that also means we should probably strip all the & signs from call_hook calls, because in both 5.3 and 5.4, the function's signature should be indicative of receiving-by-reference and in both cases it should be honoured.
In any case, any plugin using hooks should note that all variables received, that are intended to be modified in place should be indicated in the function xyz() definition as function xyz(&$variable) not function xyz($variable).
I was not surprised to discover there were issues, nor was I surprised to note what the issues were, and now that I think about it, I was not surprised to note that my observation was entirely correct.
OK, here's the deal. When a hook is called, normally all the variables are shoved through call_user_func_array by reference. As of PHP 5.4, that won't work as expected.
Specifically, it won't work if the receiving function's signature doesn't state it's expecting things as references. Which meant that most of the mods written using hooks actually didn't work properly under PHP 5.4, though oddly enough this was never an issue for mine, because I always indicated everything should be by-reference anyway in the signatures, I found it a good practice to get into.
What that also means we should probably strip all the & signs from call_hook calls, because in both 5.3 and 5.4, the function's signature should be indicative of receiving-by-reference and in both cases it should be honoured.
In any case, any plugin using hooks should note that all variables received, that are intended to be modified in place should be indicated in the function xyz() definition as function xyz(&$variable) not function xyz($variable).
3324
The Pub / Re: The Cookie Law (in the UK at least)
« on May 27th, 2012, 02:44 PM »
Which is all well and good for registered users. I see nothing that indicates that the session cookie has implied consent whatsoever, and certainly nothing that indicates the other cookies, that this law is meant to banish, will be permitted through 'implied consent'.
I tried reading the advice given, but that's just maddeningly unhelpful.
I tried reading the advice given, but that's just maddeningly unhelpful.
3325
Archived fixes / Re: BBC whitespace trimming
« on May 27th, 2012, 12:11 AM »
Hrm, interesting. I know that there were already slight changes made (e.g. about how the tag list was built)
I'm just surprised that you're not seeing as much load.
I'm just surprised that you're not seeing as much load.
3326
Archived fixes / Re: BBC whitespace trimming
« on May 26th, 2012, 10:56 PM »So... I made this post with several list items and a six-cell table, an image and a raw URL, and got it parsed in less than 2 milliseconds... It's pretty much weird that there are performance issues at all?!
Also, odd :/
3327
Archived fixes / Re: BBC whitespace trimming
« on May 26th, 2012, 09:54 PM »
Aeva and media have specific reasons why they make a significant difference. For general parsing, it's just a case of having very long posts with lots and lots of tags.
If the strlen changes make it faster, I'm all for keeping it. Just nudge me to make sure the bbcode support in the plugin manager does it too.
If the strlen changes make it faster, I'm all for keeping it. Just nudge me to make sure the bbcode support in the plugin manager does it too.
3328
Archived fixes / Re: BBC whitespace trimming
« on May 26th, 2012, 09:40 PM »
Not offhand, but any post with a lot of tags should be slow, especially if they're heavily nested. Large lists for example.
3329
Archived fixes / Re: BBC whitespace trimming
« on May 26th, 2012, 08:11 PM »I mean, do you know of many users who manually type their tags, and when they do, they're not geeks and thus don't follow the common use of lowercase for tags...?
The reason, ultimately, that parse_bbc is slow is not because of lacking micro-optimisations but because of its overall methodology, where it steps through the content tag by tag. Posts that aren't tag heavy will be quick, posts that have lots and lots of tags will be much higher proportionately.
3330
Archived fixes / Re: BBC whitespace trimming
« on May 26th, 2012, 07:41 PM »
I see what you mean, but I'm bothered by the fact we'd have to convert only known tags - any unknown tags would have to be left alone in case the user intentionally did that.
E.g. a post with things for sale:Quote You'd want that left alone.
(I had the tab open from this morning, then had to go do shopping and stuff)
I only know vaguely about the way it works or is supposed to work, it's not something I spent long looking at :(
I do agree with storing strlen, though, that would likely be advantageous.
E.g. a post with things for sale:
Item 1 [SOLD]
(I had the tab open from this morning, then had to go do shopping and stuff)
I only know vaguely about the way it works or is supposed to work, it's not something I spent long looking at :(
I do agree with storing strlen, though, that would likely be advantageous.