Author: rhuijben
Date: Wed Nov 11 10:27:55 2015
New Revision: 1713802

URL: http://svn.apache.org/viewvc?rev=1713802&view=rev
Log:
* buckets/buckets.c
  (serf_get_type): Note a possible future optimization.

Modified:
    serf/trunk/buckets/buckets.c

Modified: serf/trunk/buckets/buckets.c
URL: 
http://svn.apache.org/viewvc/serf/trunk/buckets/buckets.c?rev=1713802&r1=1713801&r2=1713802&view=diff
==============================================================================
--- serf/trunk/buckets/buckets.c (original)
+++ serf/trunk/buckets/buckets.c Wed Nov 11 10:27:55 2015
@@ -303,6 +303,16 @@ const serf_bucket_type_t *serf_get_type(
 #endif
 
         case 2:
+#if 0
+            /* We can't trust this check to always do the right thing as there
+               can be multiple pointers to the same function...
+               but an optimizing compiler/linker can still use the hint if it
+               is inlining this function. ### Enable?
+             */
+            if (bucket->type->read_bucket == serf_buckets_are_v2)
+                return bucket->type;
+#endif
+
             r = bucket->type->read_bucket(bucket, &v2_check);
             break;
 


Reply via email to